From b67ae8209b808207cc5737cec60943a88e96bc57 Mon Sep 17 00:00:00 2001 From: Lefteris Chatzimparmpas Date: Thu, 16 Feb 2012 18:49:20 +0100 Subject: [PATCH] Print a debug message on connection recovery. --- src/request.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/request.c b/src/request.c index 1d46bef..60b6176 100644 --- a/src/request.c +++ b/src/request.c @@ -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)