From: Brendan Cully Date: Mon, 8 Aug 2005 06:44:01 +0000 (+0000) Subject: Fix edge case where we might have to wait two timeouts to check for IMAP mail. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe517b2f27afa7f999dfe70672f31d4f873845ac;p=neomutt Fix edge case where we might have to wait two timeouts to check for IMAP mail. --- diff --git a/imap/imap.c b/imap/imap.c index 968fe723f..1b149c5e5 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -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;