[PATCH] Don't parse any headers in the real body of an email message.
- From
Eric W. Biederman <ebiederm@xmission.com>
- Date
- Jun 12, 2006, 19:48 UTC
- Message-ID
- <m18xo25f58.fsf_-_@ebiederm.dsl.xmission.com>
- In-Reply-To
- <Pine.LNX.4.64.0606121204220.5498@g5.osdl.org>
It was pointed out that the current behaviour might mispart a patch comment so remove this behaviour for now.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> --- mailinfo.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/mailinfo.c b/mailinfo.c index 3696d61..325c3b2 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -254,6 +254,8 @@ #define SEEN_PREFIX 020 /* First lines of body can have From:, Date:, and Subject: or be blank */ static void handle_inbody_header(int *seen, char *line) { + if (*seen & SEEN_PREFIX) + return; if (!memcmp(">From", line, 5) && isspace(line[5])) { if (!(*seen & SEEN_BOGUS_UNIX_FROM)) { *seen |= SEEN_BOGUS_UNIX_FROM;
-- 1.4.0.g25f48-dirty