From c41fbfc158e89ce22c3f906be891e5a596b39d8d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Feb 2001 04:10:02 +0000 Subject: Ready to ship, but no ATRN. svn path=/trunk/; revision=3024 --- driver.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 49c04f81..d6223f12 100644 --- a/driver.c +++ b/driver.c @@ -531,6 +531,21 @@ static int readheaders(int sock, goto process_headers; } + /* + * At least one brain-dead website (netmind.com) is known to + * send out robotmail that's missing the RFC822 delimiter blank + * line before the body! Without this check fetchmail segfaults. + * With it, we treat such messages as though they had the missing + * blank line. + */ + if (!isspace(line[0]) && !strchr(line, ":")) + { + headers_ok = TRUE; + free(line); + has_nuls = (linelen != strlen(line)); + goto process_headers; + } + /* check for RFC822 continuations */ set_timeout(mytimeout); ch = SockPeek(sock); -- cgit v1.2.3