]> granicus.if.org Git - mutt/commitdiff
Fix edge case where we might have to wait two timeouts to check for IMAP mail.
authorBrendan Cully <brendan@kublai.com>
Mon, 8 Aug 2005 06:44:01 +0000 (06:44 +0000)
committerBrendan Cully <brendan@kublai.com>
Mon, 8 Aug 2005 06:44:01 +0000 (06:44 +0000)
imap/imap.c

index 968fe723f68076cefbf24c04b54bfdf989633668..1b149c5e582c84d16782535bc8135032aaa6778b 100644 (file)
@@ -1181,7 +1181,7 @@ int imap_check_mailbox (CONTEXT *ctx, int *index_hint, int force)
 
   idata = (IMAP_DATA*) ctx->data;
 
-  if ((force || time(NULL) > idata->lastread + Timeout)
+  if ((force || time(NULL) >= idata->lastread + Timeout)
       && imap_exec (idata, "NOOP", 0) != 0)
     return -1;