]> granicus.if.org Git - neomutt/commitdiff
IMAP keepalive might have been interacting badly with $timeout when IDLE
authorBrendan Cully <brendan@kublai.com>
Thu, 15 Dec 2005 18:25:49 +0000 (18:25 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 15 Dec 2005 18:25:49 +0000 (18:25 +0000)
was enabled. Use force option for IDLE too.

imap/imap.c

index 0732cd139c4358b155a21d232537cf0d485aceeb..8f14a84c74dbbe65e32526e389863848cda6c696 100644 (file)
@@ -1187,7 +1187,7 @@ int imap_check_mailbox (CONTEXT *ctx, int *index_hint, int force)
   /* try IDLE first */
   if (option (OPTIMAPIDLE) && mutt_bit_isset (idata->capabilities, IDLE)
       && (idata->state != IMAP_IDLE
-          || time(NULL) >= idata->lastread + ImapKeepalive))
+          || force || time(NULL) >= idata->lastread + ImapKeepalive))
   {
     imap_cmd_start (idata, "IDLE");
     do