summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-09-22 11:14:27 -0700
committerKevin McCarthy <kevin@8t8.us>2017-09-22 11:14:27 -0700
commit4c96106552708c817ed2670ab3c65e8c8a8be30c (patch)
tree2cc21e6448622b54f2438487f7dcc8cb19e11f77
parent1eab777404c11dbdd3d4eedf1477adebf040cac7 (diff)
Add missing IMAP_CMD_POLL flag in imap buffy check.
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.
-rw-r--r--imap/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/imap.c b/imap/imap.c
index e81de863..0bb2d5f8 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -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;