From: Brendan Cully Date: Tue, 8 Aug 2006 22:29:35 +0000 (+0000) Subject: Handle unknown mailboxes in IMAP buffy check. X-Git-Tag: mutt-1-5-13-rel~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57a718faabd7b44d9d6dd058873a5f27fdbdab73;p=mutt Handle unknown mailboxes in IMAP buffy check. --- diff --git a/imap/imap.c b/imap/imap.c index 714383c4..0231d031 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -1452,7 +1452,7 @@ int imap_buffy_check (int force) { /* Send commands to previous server. Sorting the buffy list * may prevent some infelicitous interleavings */ - if (imap_exec (lastdata, NULL, 0) != IMAP_CMD_OK) + if (imap_exec (lastdata, NULL, IMAP_CMD_FAIL_OK) == -1) dprint (1, (debugfile, "Error polling mailboxes\n")); lastdata = NULL;