From: Art Cancro Date: Thu, 8 Jan 2009 20:00:19 +0000 (+0000) Subject: * Applied patch submitted by 'uplink' to ignore spurious From: lines that may appear... X-Git-Tag: v7.86~1639 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=0c51c0860f7d25e72cb7de4afea5d4774690566a;p=citadel.git * Applied patch submitted by 'uplink' to ignore spurious From: lines that may appear in digests. --- diff --git a/citadel/citmail.c b/citadel/citmail.c index fb1c78cc7..a665e8cc7 100644 --- a/citadel/citmail.c +++ b/citadel/citmail.c @@ -232,11 +232,9 @@ int main(int argc, char **argv) { fprintf(fp, "%s%s", fromline, buf); } } - if (!strncasecmp(buf, "From:", 5)) { + if (in_body == 0 && !strncasecmp(buf, "From:", 5)) { strcpy(fromline, buf); - if (in_body == 0) { - from_header = 1; - } + from_header = 1; } if (read_recipients_from_headers) {