From 8c04684f3bd7cdc9475e074761732428f59ae627 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Fri, 28 Apr 2017 18:53:29 +0200 Subject: [PATCH] imapserver: provide some SSL info while in imap debug mode Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/457 Tested-by: Maximilian Kaul Signed-off-by: Nicolas Sebrecht --- offlineimap/imapserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index d93dbbd..fad8f37 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -527,6 +527,8 @@ class IMAPServer(object): elif self.usessl: self.ui.connecting( self.repos.getname(), self.hostname, self.port) + self.ui.debug('imap', "%s: level '%s', version '%s'"% + (self.repos.getname(), self.tlslevel, self.sslversion)) imapobj = imaplibutil.WrappedIMAP4_SSL( host=self.hostname, port=self.port,