fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]deleting oversized messages

2005-08-21 12:10:14
On Sun, Aug 21, 2005 at 07:46:38PM +0100, Rob MacGregor wrote:
On 21/08/05, David Laight <david-fetchmail(_at_)l8s(_dot_)co(_dot_)uk> wrote:

But, IIRC, the code got broken at some point.
ISTR patching my local copy.

Then report the bug to the fetchmail-devel list, detailing what you
believe is broken.

I have...

--- 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 @@ static int fetch_messages(int mailserver
            if ((msgcode == MSGLEN_TOOLARGE) && !check_only)
            {
                mark_oversized(ctl, num, msgsize);
+               suppress_delete = TRUE;
            }
            if (outlevel > O_SILENT)
            {
@@ -765,7 +766,6 @@ flagthemail:
        else if (ctl->server.base_protocol->delete
                 && !suppress_delete
                 && ((msgcode >= 0 && !ctl->keep)
-                    || (msgcode == MSGLEN_TOOLARGE && ctl->flush)
                     || (msgcode == MSGLEN_OLD && ctl->flush)))
        {
            (*deletions)++;

in order to get 'limit 140000 flush' to delete spam over 140k.
(Based on fetchmail 6.2.5)

I had to do this when my mailbox was filling up with >50MB overnight,
and it was impossible to download and delete locally!

        David

-- 
David Laight: david(_at_)l8s(_dot_)co(_dot_)uk

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends

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