fetchmail-friends
[Top] [All Lists]

[fetchmail] [PATCH] Problem with delimiter and bogus CR/LF

2002-11-27 07:53:51

Here is a small (mostly untested) fix for Debian bug #146690.  

The problem: it appears that an unidentified POP server (probably
running on Windows) transforms some end-of-line markers into \r\r\n,
confusing fetchmail.  When fetchmail reads message headers, it can not
find any delimiter since the EMPTY_LINE macro that handles this
consider the delimiter line as non empty.

My patch considers that both \r\n and \r\r\n are empty lines.  As this
may not be the most bulletproof approach, any comment is welcomed.

Cheers,
Benjamin

-- 
  .''`.
 ; ;' ;      Debian GNU/Linux     |   Benjamin Drieu
 `. `'    http://www.debian.org/  |  <benj(_at_)debian(_dot_)org>
   `-    

Attachment: empty-line.diff
Description: Text document

Attachment: pgpPIdh9YzVH5.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] [PATCH] Problem with delimiter and bogus CR/LF, Benjamin Drieu <=