Merge branch 'maxage'

Conflicts:
	offlineimap/folder/IMAP.py
This commit is contained in:
John Goerzen
2009-08-16 09:29:00 -05:00
4 changed files with 128 additions and 12 deletions

View File

@ -178,16 +178,22 @@ class AccountSynchronizationMixin:
# Connect to the local cache.
self.statusrepos = offlineimap.repository.LocalStatus.LocalStatusRepository(self.getconf('localrepository'), self)
#might need changes here to ensure that one account sync does not crash others...
if not self.refreshperiod:
self.sync(siglistener)
self.ui.acctdone(self.name)
return
looping = 1
while looping:
self.sync(siglistener)
looping = self.sleeper(siglistener) != 2
self.ui.acctdone(self.name)
self.ui.acctdone(self.name)
def getaccountmeta(self):
return os.path.join(self.metadatadir, 'Account-' + self.name)