From: Brendan Cully Date: Tue, 8 Aug 2006 22:29:35 +0000 (+0000) Subject: Handle unknown mailboxes in IMAP buffy check. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d516d0caf6d5fc8c6dad16cf6c662693c50486b;p=neomutt Handle unknown mailboxes in IMAP buffy check. --- diff --git a/imap/imap.c b/imap/imap.c index 714383c49..0231d031d 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;