Include In-Reply-To: when sending replies: bug 78117 r=ducarroz sr=bienvenu

This commit is contained in:
jgmyers%netscape.com 2002-10-04 22:26:08 +00:00
parent 0cabe78b54
commit 297b98f113
2 changed files with 12 additions and 0 deletions

View File

@ -662,6 +662,16 @@ RRT_HEADER:
else
PUSH_STRING (pReference);
PUSH_NEWLINE ();
{
char *trimAt = PL_strchr(pReference, '>');
if (trimAt) {
trimAt++;
PUSH_STRING ("In-Reply-To: ");
PUSH_STRINGN (pReference, trimAt-pReference);
PUSH_NEWLINE ();
}
}
}
if (pOtherHdr && *pOtherHdr) {

View File

@ -171,6 +171,8 @@
//
#define PUSH_STRING(S) \
do { PL_strcpy (buffer_tail, S); buffer_tail += PL_strlen (S); } while(0)
#define PUSH_STRINGN(S,N) \
do { memcpy(buffer_tail, (S), (N)); buffer_tail += (N); } while(0)
#define PUSH_NEWLINE() \
do { *buffer_tail++ = nsCRT::CR; *buffer_tail++ = nsCRT::LF; *buffer_tail = '\0'; } while(0)