remove unneeded includes from syncmaster.py
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
7eca3f194f
commit
1b36c314c6
@ -16,15 +16,10 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
import imaplib
|
from offlineimap import mbnames
|
||||||
from offlineimap import imapserver, repository, folder, mbnames, threadutil, version
|
from offlineimap.threadutil import threadlist, InstanceLimitedThread, ExitNotifyThread
|
||||||
from offlineimap.threadutil import InstanceLimitedThread, ExitNotifyThread
|
|
||||||
import offlineimap.accounts
|
|
||||||
from offlineimap.accounts import SyncableAccount, SigListener
|
from offlineimap.accounts import SyncableAccount, SigListener
|
||||||
from offlineimap.ui import UIBase
|
from threading import currentThread
|
||||||
import re, os, os.path, offlineimap, sys
|
|
||||||
from ConfigParser import ConfigParser
|
|
||||||
from threading import *
|
|
||||||
|
|
||||||
def syncaccount(threads, config, accountname, siglisteners):
|
def syncaccount(threads, config, accountname, siglisteners):
|
||||||
account = SyncableAccount(config, accountname)
|
account = SyncableAccount(config, accountname)
|
||||||
@ -41,8 +36,7 @@ def syncaccount(threads, config, accountname, siglisteners):
|
|||||||
|
|
||||||
def syncitall(accounts, config, siglisteners):
|
def syncitall(accounts, config, siglisteners):
|
||||||
currentThread().setExitMessage('SYNC_WITH_TIMER_TERMINATE')
|
currentThread().setExitMessage('SYNC_WITH_TIMER_TERMINATE')
|
||||||
ui = UIBase.getglobalui()
|
threads = threadlist()
|
||||||
threads = threadutil.threadlist()
|
|
||||||
mbnames.init(config, accounts)
|
mbnames.init(config, accounts)
|
||||||
for accountname in accounts:
|
for accountname in accounts:
|
||||||
syncaccount(threads, config, accountname, siglisteners)
|
syncaccount(threads, config, accountname, siglisteners)
|
||||||
|
Loading…
Reference in New Issue
Block a user