diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-31 12:39:15 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-31 12:39:15 +0000 |
commit | bbaa1839e46e1aa0f493c55dba870522e2f3930c (patch) | |
tree | 68b54888de02e52d2302fb0e018bcfe69fe8687b /imap | |
parent | 88b3020df11224485aae6f907ec99d0111bcc0e8 (diff) |
Experimental patch to add an imap-fetch-mail function.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/imap.c | 5 |
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) { |