fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] logout after idle delivery

2002-11-20 11:52:24
On Wed, Nov 20, 2002 at 11:16:27AM +0530, Sunil Shetye wrote:
Quoting from Gordon Tetlow's mail on Tue, Nov 19, 2002 at 12:46:15PM -0800:
fetchmail: IMAP> A0010 STORE 1 +FLAGS (\Seen \Deleted)
fetchmail: IMAP< * 1 FETCH (FLAGS (\Seen \Deleted \Recent))

This line is being used by fetchmail to get the recentcount. This is a
bug. recentcount is incorrectly set to 1 here.

fetchmail: IMAP< A0010 OK STORE completed.
fetchmail: IMAP> A0011 EXPUNGE
fetchmail: IMAP< * 1 EXPUNGE
fetchmail: IMAP< * 0 EXISTS
fetchmail: IMAP< A0011 OK EXPUNGE completed.

Normally, EXPUNGE reports the number of recent mail too. Something
like:

IMAP> A0011 EXPUNGE
...
IMAP< * 0 EXISTS
IMAP< * 0 RECENT
IMAP< A0011 OK EXPUNGE completed.

Both problems are fixed in this patch:

This patch worked like a charm for me. Thanks!

-gordon

Attachment: pgpg36po4nBUS.pgp
Description: PGP signature

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