fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] Feature proposal

2003-07-16 18:13:47
Giuseppe Guerrini <giusguerrini(_at_)racine(_dot_)ra(_dot_)it>:
 my POP3 (non-IMAP) mailbox is often filled by lot of spam with big bodies
(about 150Kb). The anti-spam option works well, but it seems that
fetchmail has anyway to download the whole message because of a leak of
POP3 protocol (it misses a command to read the message body alone). In my
situation a double read of message headers is worth because the bodies are
large.
 So, I made some changes to fetchmail 6.2.2 (path attached). My patch adds
the new protocol "POP3X", that is actually POP3 with a two-steps fetch:
a "fetch header" step that sends "TOP n 0", and a "fetch body" that sends
"RETR" or "TOP n 99999999" and then skips the headers. In my particular
environment it seems to work, but I had to use some ugly trick to limit
the changes to the pop3 driver instead of touching the core fetch engine
(see the function pop3_trail).
 I will appreciate any suggestions, comments, ideas.

This was clever, but it's too klugy to be included in the mainstream fetchmail.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

<Prev in Thread] Current Thread [Next in Thread>