summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/app.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-12-18 13:56:10 -0300
committerTomás Touceda <chiiph@leap.se>2013-12-18 13:56:10 -0300
commit80e66a80a2dcb06e837a8c83f21de74d2b6aa324 (patch)
treea6c10610f4863222529fb4f0c0e820079af14eaa /src/leap/bitmask/app.py
parent6b7a1fc2d567a0adb05e1976f809ff78f550f98e (diff)
parenta8fc15ee9fdd92189f53bf7ee700ee4db5beb30e (diff)
Merge remote-tracking branch 'refs/remotes/kali/feature/repair-mailbox' into develop
Diffstat (limited to 'src/leap/bitmask/app.py')
-rw-r--r--src/leap/bitmask/app.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index 3bb9c8c3..3bf4575e 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -54,7 +54,9 @@ from leap.bitmask.util import log_silencer
from leap.bitmask.util.leap_log_handler import LeapLogHandler
from leap.bitmask.util.streamtologger import StreamToLogger
from leap.bitmask.platform_init import IS_WIN
+from leap.bitmask.services.mail.repair import repair_account
from leap.common.events import server as event_server
+from leap.mail import __version__ as MAIL_VERSION
import codecs
codecs.register(lambda name: codecs.lookup('utf-8')
@@ -170,6 +172,11 @@ def main():
if opts.version:
print "Bitmask version: %s" % (VERSION,)
+ print "leap.mail version: %s" % (MAIL_VERSION,)
+ sys.exit(0)
+
+ if opts.acct_to_repair:
+ repair_account(opts.acct_to_repair)
sys.exit(0)
standalone = opts.standalone
@@ -217,6 +224,7 @@ def main():
logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logger.info('Bitmask version %s', VERSION)
+ logger.info('leap.mail version %s', MAIL_VERSION)
logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logger.info('Starting app')