]> granicus.if.org Git - mutt/commitdiff
Add missing IMAP_CMD_POLL flag in imap buffy check.
authorKevin McCarthy <kevin@8t8.us>
Fri, 22 Sep 2017 18:14:27 +0000 (11:14 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 22 Sep 2017 18:14:27 +0000 (11:14 -0700)
I missed adding the flag to one of the imap_exec() calls inside the
loop, when a different server is encountered in the mailboxes list.

imap/imap.c

index e81de8632a46ff8e13594013b52a6592ada4de63..0bb2d5f8d37c84089d523408f6d474b06413a9eb 100644 (file)
@@ -1619,7 +1619,7 @@ int imap_buffy_check (int force, int check_stats)
     {
       /* Send commands to previous server. Sorting the buffy list
        * may prevent some infelicitous interleavings */
-      if (imap_exec (lastdata, NULL, IMAP_CMD_FAIL_OK) == -1)
+      if (imap_exec (lastdata, NULL, IMAP_CMD_FAIL_OK | IMAP_CMD_POLL) == -1)
         dprint (1, (debugfile, "Error polling mailboxes\n"));
 
       lastdata = NULL;