Merge branch 'fix/225' of git://github.com/milouse/offlineimap into milouse-fix/225
This commit is contained in:
commit
ebf9e24f87
@ -217,6 +217,9 @@ class OfflineImap:
|
||||
imaplib.Debug = 5
|
||||
|
||||
if options.runonce:
|
||||
# Must kill the possible default option
|
||||
if config.has_option('DEFAULT', 'autorefresh'):
|
||||
config.remove_option('DEFAULT', 'autorefresh')
|
||||
# FIXME: spaghetti code alert!
|
||||
for section in accounts.getaccountlist(config):
|
||||
config.remove_option('Account ' + section, "autorefresh")
|
||||
|
Loading…
Reference in New Issue
Block a user