aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index d7f0f78b..5996a540 100644
--- a/imap.c
+++ b/imap.c
@@ -466,6 +466,10 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
ctl->sslcertfile, ctl->sslcertpath, ctl->sslfingerprint, commonname,
ctl->server.pollname, &ctl->remotename)) != -1)
{
+ if (outlevel >= O_VERBOSE)
+ {
+ report(stdout, GT_("%s: upgrade to TLS succeeded.\n"), commonname);
+ }
/*
* RFC 2595 says this:
*
@@ -481,10 +485,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
*/
if ((ok = capa_probe(sock, ctl)))
return ok;
- if (outlevel >= O_VERBOSE)
- {
- report(stdout, GT_("%s: upgrade to TLS succeeded.\n"), commonname);
- }
} else if (must_starttls(ctl)) {
/* Config required TLS but we couldn't guarantee it, so we must
* stop. */