diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2003-02-28 10:53:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2003-02-28 10:53:49 +0000 |
commit | 5283e32c823c36f7904691441c1241edde8ca7b1 (patch) | |
tree | 26a9a532aad98792f864a96104aa6c3793837ff9 /transact.c | |
parent | a84e8bcb141f2b683e1bf20063cbf50245dfe583 (diff) | |
download | fetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.tar.gz fetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.tar.bz2 fetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.zip |
Before the IDLE patch.
svn path=/trunk/; revision=3792
Diffstat (limited to 'transact.c')
-rw-r--r-- | transact.c | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -865,18 +865,6 @@ int readheaders(int sock, } /* - * We want to detect this early in case there are so few headers that the - * dispatch logic barfs. - */ - if (!headers_ok) - { - if (outlevel > O_SILENT) - report(stdout, - GT_("message delimiter found while scanning headers\n")); - return(PS_TRUNCATED); - } - - /* * Hack time. If the first line of the message was blank, with no headers * (this happens occasionally due to bad gatewaying software) cons up * a set of fake headers. @@ -1255,7 +1243,15 @@ int readheaders(int sock, *cp++ = '\0'; stuffline(ctl, buf); - return(headers_ok ? PS_SUCCESS : PS_TRUNCATED); + if (!headers_ok) + { + if (outlevel > O_SILENT) + report(stdout, + GT_("message delimiter found while scanning headers\n")); + return(PS_TRUNCATED); + } + + return(PS_SUCCESS); } int readbody(int sock, struct query *ctl, flag forward, int len) |