aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-07 04:10:02 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-07 04:10:02 +0000
commitc41fbfc158e89ce22c3f906be891e5a596b39d8d (patch)
tree73ee4be14f6dc38c6a6ddcb9cb69503b1ca1712e /driver.c
parentbe37952bc3191e470dda13600ac316000a8cfeeb (diff)
downloadfetchmail-c41fbfc158e89ce22c3f906be891e5a596b39d8d.tar.gz
fetchmail-c41fbfc158e89ce22c3f906be891e5a596b39d8d.tar.bz2
fetchmail-c41fbfc158e89ce22c3f906be891e5a596b39d8d.zip
Ready to ship, but no ATRN.
svn path=/trunk/; revision=3024
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c15
1 files changed, 15 insertions, 0 deletions
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);