fetchmail-friends
[Top] [All Lists]

[fetchmail] [PATCH] Re: how to avoid "missed" mail

2002-12-23 07:16:42
Quoting from Matthias Andree's mail on Fri, Dec 20, 2002 at 05:22:35PM +0100:
Quoting from Matthias Andree's mail on Thu, Dec 19, 2002 at 06:55:38PM 
+0100:
Then there's a driver bug. fetchmail must not mark a mail it could not
deliver "read". However, I only tested against POP3, so I may have
missed that one at that time.

I am not sure if this is correct for POP3. It works correctly only for
POP3+UIDL (client side tracking).

UIDL is the only sane way for a reliable retrieval. Eric should make
that the default in the next version (it should have become the default
in 6.0.0 already).

Ok.

In that case, the IMAP code indeed has a bug. Here is a patch which
fixes that by adding a mark_seen() function to the driver and always
using BODY.PEEK for imap.

This patch also moves around the POP3/UID code from driver.c to pop3.c
just to keep things consistent.

I have tested this patch by using a script which returns 1 as an mda
for both IMAP and POP3.

-- 
Sunil Shetye.

Attachment: fetchmail-6.2.0-markseen.patch
Description: Text document