--info displays the imaplib2 version and whether it's the bundled or system one

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht
2016-06-04 15:20:08 +02:00
parent 9902a116c0
commit fd0198027a
2 changed files with 6 additions and 0 deletions

View File

@@ -452,6 +452,7 @@ class OfflineImap(object):
account.syncrunner()
def __serverdiagnostics(self, options):
self.ui.info(" imaplib2: %s (%s)"% (imaplib.__version__, imaplib.DESC))
activeaccounts = self.config.get("general", "accounts")
if options.accounts:
activeaccounts = options.accounts