Rob MacGregor schrieb:
The problem is simple - you've specified keep (ie don't mark as
downloaded) without enabling UIDL support (see the man page). That
way, fetchmail doesn't know what it's seen and what it hasn't.
UIDL shoudn't be needed for imap, since imap implements server side
tracking of seen states. As far as I know UIDL is supposed to be used
with POP3 only to achieve there what imap is able to do out of the box.
Excerpt from the fetchmail man page:
"The UIDL code is generally flaky and tends to lose its state on errors
and line drops (so that old messages are re-seen). If this happens to
you, switch to IMAP4."