Print a debug message on connection recovery.

This commit is contained in:
Lefteris Chatzimparmpas 2012-02-16 18:49:20 +01:00
parent 14091fc7bf
commit b67ae8209b
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ request_login(session **ssnptr, const char *server, const char *port, const
!strncasecmp(ssl, "ssl3", 4) ||
!strncasecmp(ssl, "ssl2", 4)))
ssn->ssl = ssl;
} else {
debug("recovering connection: %s://%s@%s:%s/%s\n", ssn->ssl ?
"imaps" : "imap", ssn->username, ssn->server, ssn->port,
ssn->selected ? ssn->selected : "");
}
if (open_connection(ssn) == -1)