diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-02-23 09:13:45 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-02-23 09:13:45 +0000 |
commit | 5d42b78a7e488f1e0e1869c3e549f09b3567c7e5 (patch) | |
tree | 237a82a30e6fd27bbab8316816cbeff3d259670e /imap | |
parent | f7ec5889acf1bb76f6c005429cce858b1c94572e (diff) |
update.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/imap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/imap/imap.c b/imap/imap.c index 80e4c73a..80460a2c 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -389,7 +389,8 @@ int imap_open_connection (IMAP_DATA* idata) { if (mutt_ssl_starttls (idata->conn)) { - dprint (1, (debugfile, "imap_open_connection: STARTTLS failed\n")); + mutt_error ("Could not negotiate TLS connection"); + sleep (1); goto bail; } else @@ -1052,7 +1053,8 @@ int imap_check_mailbox (CONTEXT *ctx, int *index_hint) idata = (IMAP_DATA*) ctx->data; now = time(NULL); - if (now > ImapLastCheck + Timeout) { + if (now > ImapLastCheck + Timeout) + { ImapLastCheck = now; if (imap_exec (idata, "NOOP", 0) != 0) |