From: Thomas Roessler Date: Fri, 18 Feb 2000 08:11:32 +0000 (+0000) Subject: Reasonably handle suerfluous EXIST messages from IMAP servers. From X-Git-Tag: mutt-1-1-5-rel~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bce8be73492e3b34a2fb1a9c0b0236be425c474;p=mutt Reasonably handle suerfluous EXIST messages from IMAP servers. From Brendan Cully. --- diff --git a/imap/command.c b/imap/command.c index 9bb7b4cf..964e4d6c 100644 --- a/imap/command.c +++ b/imap/command.c @@ -167,11 +167,16 @@ int imap_handle_untagged (IMAP_DATA *idata, char *s) mx_fastclose_mailbox (idata->selected_ctx); return -1; } + /* at least the InterChange server sends EXISTS messages freely, + * even when there is no new mail */ + else if (count == idata->selected_ctx->msgcount) + dprint (3, (debugfile, + "imap_handle_untagged: superfluous EXISTS message.\n")); else { if (idata->status != IMAP_EXPUNGE) { - dprint(2, (debugfile, + dprint (2, (debugfile, "imap_handle_untagged: New mail in %s - %d messages total.\n", idata->selected_mailbox, count)); idata->status = IMAP_NEW_MAIL;