Execute `postsynchook` after IDLE-Sync

This commit is contained in:
mxgr7 2013-07-04 05:48:12 +02:00
parent a73b4b3465
commit 5d2ef5ab28
1 changed files with 2 additions and 0 deletions

View File

@ -511,6 +511,8 @@ class IdleThread(object):
remotefolder = remoterepos.getfolder(self.folder)
offlineimap.accounts.syncfolder(account, remotefolder, quick=False)
ui = getglobalui()
hook = account.getconf('postsynchook', '')
account.callhook(hook)
ui.unregisterthread(currentThread()) #syncfolder registered the thread
def idle(self):