summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-12-31 12:39:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-12-31 12:39:15 +0000
commitbbaa1839e46e1aa0f493c55dba870522e2f3930c (patch)
tree68b54888de02e52d2302fb0e018bcfe69fe8687b /imap
parent88b3020df11224485aae6f907ec99d0111bcc0e8 (diff)
Experimental patch to add an imap-fetch-mail function.
Diffstat (limited to 'imap')
-rw-r--r--imap/imap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/imap/imap.c b/imap/imap.c
index 4f7913eb..3302e91b 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -1008,7 +1008,6 @@ int imap_check_mailbox (CONTEXT *ctx, int *index_hint)
{
/* overload keyboard timeout to avoid many mailbox checks in a row.
* Most users don't like having to wait exactly when they press a key. */
- static time_t LastCheck = 0;
IMAP_DATA* idata;
time_t now;
@@ -1016,8 +1015,8 @@ int imap_check_mailbox (CONTEXT *ctx, int *index_hint)
idata = (IMAP_DATA*) ctx->data;
now = time(NULL);
- if (now > LastCheck + Timeout) {
- LastCheck = now;
+ if (now > ImapLastCheck + Timeout) {
+ ImapLastCheck = now;
if (imap_exec (idata, "NOOP", 0) != 0)
{