diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-07 04:10:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-07 04:10:02 +0000 |
commit | c41fbfc158e89ce22c3f906be891e5a596b39d8d (patch) | |
tree | 73ee4be14f6dc38c6a6ddcb9cb69503b1ca1712e /driver.c | |
parent | be37952bc3191e470dda13600ac316000a8cfeeb (diff) | |
download | fetchmail-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.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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); |