fetchmail-friends
[Top] [All Lists]

[fetchmail]fetchmail 6.2.5 no longer allows oversized messages be flushed

2004-04-18 09:44:11
I've just upgraded from 5.9.6 to 6.2.5 and found that fetchmail no longer
behaves correctly when asked to flush oversized messages.

I have 'limit 140000 flush' in my .fetchmailrc file in order to avoid
downloading MB of virus mail (added when I was getting 50MB overnight).

This patch will fix it:

--- driver.c    2004-04-17 09:11:49.000000000 +0100
+++ driver.c.orig       2003-10-15 20:22:31.000000000 +0100
@@ -537,6 +537,7 @@
            if ((msgcode == MSGLEN_TOOLARGE) && !check_only)
            {
                mark_oversized(ctl, num, msgsize);
+               suppress_delete = TRUE;
            }
            if (outlevel > O_SILENT)
            {
@@ -765,7 +766,6 @@
        else if (ctl->server.base_protocol->delete
                 && !suppress_delete
                 && ((msgcode >= 0 && !ctl->keep)
-                    || (msgcode == MSGLEN_TOOLARGE && ctl->flush)
                     || (msgcode == MSGLEN_OLD && ctl->flush)))
        {
            (*deletions)++;

But I suspect the change is related to the 'fix':
* Benjamin Drieu's patch to fix Debian bug #212240, no oversized-message
  flushing if both "flush" and "limit" were specified.

I don't know what the Debian bug was, but it is important to be able to
delete large messages without downloading them.

        David

-- 
David Laight: david (at) l8s.co.uk, dsl (at) netbsd.org


<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail]fetchmail 6.2.5 no longer allows oversized messages be flushed, David Laight <=