From 5d42b78a7e488f1e0e1869c3e549f09b3567c7e5 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 23 Feb 2001 09:13:45 +0000 Subject: update. --- imap/imap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'imap') 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) -- cgit v1.2.3