Revert "Checkpointing work on mailbox deletion"

This reverts commit f58ebe390d.

Not going to follow this path right now
This commit is contained in:
John Goerzen
2008-05-20 01:38:32 -05:00
parent f58ebe390d
commit 6790c94869
2 changed files with 3 additions and 40 deletions

View File

@ -95,16 +95,6 @@ class Account(CustomConfig.ConfigHelperMixin):
return sleepresult
class AccountSynchronizationMixin:
def __init__(self, config, name, folderhash, folderhashlock):
Account.__init__(self, config, name)
self.folderhash = folderhash
self.folderhashlock = folderhashlock
self.folderhashlock.acquire()
try:
self.folderhash[name] = {}
finally:
self.folderhashlock.release()
def syncrunner(self):
self.ui.registerthread(self.name)
self.ui.acct(self.name)
@ -119,18 +109,6 @@ class AccountSynchronizationMixin:
# Connect to the local cache.
self.statusrepos = offlineimap.repository.LocalStatus.LocalStatusRepository(self.getconf('localrepository'), self)
# FIXME: need new UI here?
self.ui.syncfolders(self.remoterepos, self.localrepos)
srcfolders = self.remoterepos.getfolders()
destfolders = self.localrepos.getfolders()
self.folderhashlock.acquire()
try:
self.folderhash[name] = {'src': srcfolders, 'dest': destfolders}
self.folderhash['___sem'].release()
finally:
self.folderhashlock.release()
if not self.refreshperiod:
self.sync()