From 51c4e455d060e70595350f817790553a87b4f402 Mon Sep 17 00:00:00 2001 From: "jgmyers%netscape.com" Date: Thu, 17 Oct 2002 22:17:08 +0000 Subject: [PATCH] fix contents of In-reply-to header: bug 173645 r=ducarroz sr=bienvenu a=asa --- mailnews/compose/src/nsMsgCompUtils.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mailnews/compose/src/nsMsgCompUtils.cpp b/mailnews/compose/src/nsMsgCompUtils.cpp index bc40f09872f..507e5b589ab 100644 --- a/mailnews/compose/src/nsMsgCompUtils.cpp +++ b/mailnews/compose/src/nsMsgCompUtils.cpp @@ -663,12 +663,11 @@ RRT_HEADER: PUSH_STRING (pReference); PUSH_NEWLINE (); { - char *trimAt = PL_strchr(pReference, '>'); + const char *lastRef = PL_strrchr(pReference, '<'); - if (trimAt) { - trimAt++; + if (lastRef) { PUSH_STRING ("In-Reply-To: "); - PUSH_STRINGN (pReference, trimAt-pReference); + PUSH_STRING (lastRef); PUSH_NEWLINE (); } }