Hello,
fetchmail 6.2.5, when using the imap protocol, has problems to handle
the case when an EXPUNGE command doesn't update the EXISTS and RECENT
counters just after. dovecot is such an imap server for example.
The existing test "(recentcount > count)" is not enough to ensure
consistency, because both values can still be coherent when compared
together, but can be greater than the real values server-side after an
expunge command occured.
See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113492 for
more details.
I suggest this patch :
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=100788&action=view
recentcount is reset to zero, when a RECENT value doesn't follow an
EXPUNGE command. So we are sure that fetchmail won't ask for non
existing recent messages. But maybe there is a way to force the refresh
of EXISTS and RECENT ?
Best wishes,
--
fabrice