Reduce parameter list to account.syncfolder call

The remote|local|statusrepo is an anttribute of each SyncableAccount()
anyway, so we don't need to pass it in, we can simply get it from the
Account().

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2011-11-03 13:27:35 +01:00
parent ef28d5dac0
commit ab184d84e2
2 changed files with 12 additions and 11 deletions

View File

@ -515,9 +515,9 @@ class IdleThread(object):
remoterepos = account.remoterepos
statusrepos = account.statusrepos
remotefolder = remoterepos.getfolder(self.folder)
offlineimap.accounts.syncfolder(account.name, remoterepos, remotefolder, localrepos, statusrepos, quick=False)
offlineimap.accounts.syncfolder(account, remotefolder, quick=False)
ui = getglobalui()
ui.unregisterthread(currentThread())
ui.unregisterthread(currentThread()) #syncfolder registered the thread
def idle(self):
"""Invoke IDLE mode until timeout or self.stop() is invoked"""