Merge branch 'fix/225' of git://github.com/milouse/offlineimap into milouse-fix/225

This commit is contained in:
Nicolas Sebrecht 2015-09-04 15:50:58 +02:00
commit ebf9e24f87

View File

@ -217,6 +217,9 @@ class OfflineImap:
imaplib.Debug = 5 imaplib.Debug = 5
if options.runonce: if options.runonce:
# Must kill the possible default option
if config.has_option('DEFAULT', 'autorefresh'):
config.remove_option('DEFAULT', 'autorefresh')
# FIXME: spaghetti code alert! # FIXME: spaghetti code alert!
for section in accounts.getaccountlist(config): for section in accounts.getaccountlist(config):
config.remove_option('Account ' + section, "autorefresh") config.remove_option('Account ' + section, "autorefresh")