/offlineimap/head: changeset 312
Updated the mbnames recorder to bring it back up-to-date with the new account-centric system. It will now gather reports from account sync threads, and when it has all that it's supposed to, it'll write out the file.
This commit is contained in:
@ -38,9 +38,8 @@ def syncitall(accounts, config):
|
||||
currentThread().setExitMessage('SYNC_WITH_TIMER_TERMINATE')
|
||||
ui = UIBase.getglobalui()
|
||||
threads = threadutil.threadlist()
|
||||
offlineimap.accounts.mailboxes = [] # Reset.
|
||||
mbnames.init(config, accounts)
|
||||
for accountname in accounts:
|
||||
syncaccount(threads, config, accountname)
|
||||
# Wait for the threads to finish.
|
||||
threads.reset()
|
||||
mbnames.genmbnames(config, offlineimap.accounts.mailboxes)
|
||||
|
Reference in New Issue
Block a user