fetchmail-friends
[Top] [All Lists]

[fetchmail] Re: Incorrect headers (again, but this time with more debug info)

2003-06-03 04:32:43
Quoting from Frank A Ekern's mail on Wed, May 21, 2003 at 03:03:59PM +0200:
The mails which I have received which have caused trouble has all been
spam messages which seems to have had its headers deliberately broken,
probably to allow cross site scripting or an similar attack. At least
for my messages, deletion and not detaining should be the default.

Here is a patch which will delete such mails. It is to be applied
after the previous patch in this thread which kept such mails.

This patch does the following things:

* mails without header delimiter are deleted. further headers(?) are
not processed.

* (POP3) when the message delimiter (.\r\n) is received, fetchmail
used to return PS_TRUNCATED. This is a problem when the mail is
rejected by the smtp server and PS_REFUSED is returned. this patch now
directly sets the suppress_readbody flag. readheaders() does not
return PS_TRUNCATED now.

* the (len == 0) hack to suppress the call to readbody() is not used
now. instead, the suppress_readbody flag is set and used. This was a
problem when there was really a mail of 0 size with IMAP. The body
trail was not read causing the conversation to go out of sync.

-- 
Sunil Shetye.

Attachment: fetchmail-6.2.2-suppress.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] Re: Incorrect headers (again, but this time with more debug info), Sunil Shetye <=