diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-22 04:08:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-22 04:08:25 +0000 |
commit | b28a3be8aee6bdf1a1cd167f3966bad9b2bb4481 (patch) | |
tree | c1ffccb431c4d0a9fa54c7499cbbc1bde40c876f /driver.c | |
parent | 74eb0be1e799d5485fae6e9c82fddc4d4b785df5 (diff) | |
download | fetchmail-b28a3be8aee6bdf1a1cd167f3966bad9b2bb4481.tar.gz fetchmail-b28a3be8aee6bdf1a1cd167f3966bad9b2bb4481.tar.bz2 fetchmail-b28a3be8aee6bdf1a1cd167f3966bad9b2bb4481.zip |
Add comment.
svn path=/trunk/; revision=2572
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1106,7 +1106,16 @@ static int readbody(int sock, struct query *ctl, flag forward, int len) unsigned char *inbufp = buf; flag issoftline = FALSE; - /* pass through the text lines */ + /* + * Pass through the text lines in the body. + * + * Yes, this wants to be ||, not &&. The problem is that in the most + * important delimited protocol, POP3, the length is not reliable. + * As usual, the problem is Microsoft brain damage; see FAQ item S2. + * So, for delimited protocols we need to ignore the length here and + * instead drop out of the loop with a break statement when we see + * the message delimiter. + */ while (protocol->delimited || len > 0) { set_timeout(mytimeout); |