]> granicus.if.org Git - neomutt/commitdiff
Handle unknown mailboxes in IMAP buffy check.
authorBrendan Cully <brendan@kublai.com>
Tue, 8 Aug 2006 22:29:35 +0000 (22:29 +0000)
committerBrendan Cully <brendan@kublai.com>
Tue, 8 Aug 2006 22:29:35 +0000 (22:29 +0000)
imap/imap.c

index 714383c49912fcf2552e79cd0bc5da1a077a3399..0231d031d2d8e20f40442645388abb026a3a5eea 100644 (file)
@@ -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;