/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:
jgoerzen
2003-01-06 21:40:23 +01:00
parent 930f94fbb1
commit f652bc5bac
3 changed files with 35 additions and 9 deletions

View File

@ -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)