From 0c51c0860f7d25e72cb7de4afea5d4774690566a Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 8 Jan 2009 20:00:19 +0000 Subject: [PATCH] * Applied patch submitted by 'uplink' to ignore spurious From: lines that may appear in digests. --- citadel/citmail.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) { -- 2.39.2