From 6a631903b531ade7a608b89ee133c9eda00b54ff Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 14 Oct 1996 19:10:25 +0000 Subject: Accept RFC822 headers with tabs in them. svn path=/trunk/; revision=333 --- NEWS | 2 ++ driver.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index b9b60bc6..490e1ecd 100644 --- a/NEWS +++ b/NEWS @@ -30,6 +30,8 @@ bugs -- In versions up to 1.7 it was the calling user; in 1.8 the remote user ID. This created some confusion. +* Accept RFC822 headers wiith a tab after the colon. + fetchmail-1.8 (Fri Oct 11 15:08:10 EDT 1996): features -- diff --git a/driver.c b/driver.c index 316f2203..a52ffe24 100644 --- a/driver.c +++ b/driver.c @@ -358,13 +358,13 @@ struct hostrec *queryctl; if (!strncmp(bufp,"From ",5)) unixfrom = bufp; - else if (!strncasecmp("From: ", bufp, 6)) + else if (!strncasecmp("From:", bufp, 5)) fromhdr = bufp; - else if (!strncasecmp("To: ", bufp, 4)) + else if (!strncasecmp("To:", bufp, 3)) tohdr = bufp; - else if (!strncasecmp("Cc: ", bufp, 4)) + else if (!strncasecmp("Cc:", bufp, 3)) cchdr = bufp; - else if (!strncasecmp("Bcc: ", bufp, 5)) + else if (!strncasecmp("Bcc:", bufp, 4)) bcchdr = bufp; goto skipwrite; -- cgit v1.2.3