From 8b0814aa4eca15297eb1ffe7c30ee22bb8c3a7af Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 22 Jan 2010 01:15:18 +0000 Subject: Fix IMAP IDLE and untagged (* ...) response parser, by Sunil Shetye. The IMAP client no longer skips messages from several IMAP servers including Dovecot if fetchmail's "idle" is in use. Causes were that fetchmail (a) ignored some untagged responses when it should not (b) relied on EXISTS messages in response to EXPUNGE, which aren't mandated by RFC-3501 (the IMAP standard) and aren't sent by Dovecot either. Fix by Sunil Shetye (the fix also consolidates IMAP response handling, improving overall robustness of the IMAP client), bug report and testing by Matt Doran, with further hints from Timo Sirainen. svn path=/branches/BRANCH_6-3/; revision=5459 --- fetchmail.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 702fcae5..c459bdca 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -145,6 +145,7 @@ char *strstr(const char *, const char *); #define PS_RETAINED 26 /* message retained (internal use) */ #define PS_REPOLL 28 /* repoll immediately with changed parameters (internal use) */ #define PS_IDLETIMEOUT 29 /* timeout on imap IDLE (internal use) */ +#define PS_UNTAGGED 30 /* untagged response on imap command (internal use) */ /* output noise level */ #define O_SILENT 0 /* mute, max squelch, etc. */ -- cgit v1.2.3