diff options
author | Kali Kaneko <kali@leap.se> | 2014-01-12 22:56:31 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-01-13 11:45:51 -0400 |
commit | 7f9fa030ed44a7db6ced5b359c49dadc0a781b8a (patch) | |
tree | 9e4c36b456e8b050d40cbaebc0359b929625e001 /src/leap/bitmask/app.py | |
parent | 36d634ad980bd260a3d93f8005725bc2dc3527f7 (diff) |
able to import maildir
Diffstat (limited to 'src/leap/bitmask/app.py')
-rw-r--r-- | src/leap/bitmask/app.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py index 12d1dadd..d8d1d38a 100644 --- a/src/leap/bitmask/app.py +++ b/src/leap/bitmask/app.py @@ -54,7 +54,7 @@ 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.plumber import repair_account +from leap.bitmask.services.mail import plumber from leap.common.events import server as event_server from leap.mail import __version__ as MAIL_VERSION @@ -176,9 +176,13 @@ def main(): print "leap.mail version: %s" % (MAIL_VERSION,) sys.exit(0) - if opts.acct_to_repair: - repair_account(opts.acct_to_repair) + if opts.repair: + plumber.repair_account(opts.acct) sys.exit(0) + if opts.import_maildir and opts.acct: + plumber.import_maildir(opts.acct, opts.import_maildir) + sys.exit(0) + # XXX catch when import is used w/o acct standalone = opts.standalone offline = opts.offline |