From 4d516d0caf6d5fc8c6dad16cf6c662693c50486b Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 8 Aug 2006 22:29:35 +0000 Subject: [PATCH] Handle unknown mailboxes in IMAP buffy check. --- imap/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0