1
0
mirror of https://github.com/OfflineIMAP/offlineimap.git synced 2024-06-25 07:27:44 +02:00

offlineimap.conf: allow non-spaces in the account list

Commit c992f58530 pretends to fix this bug it doesn't.

Regression introduced in v7.0.0.

Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/355
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-07-28 04:06:52 +02:00
parent 88e8a4895e
commit 0b824bdc49
2 changed files with 5 additions and 6 deletions

View File

@ -379,7 +379,7 @@ class OfflineImap(object):
activeaccountnames = self.config.get("general", "accounts") activeaccountnames = self.config.get("general", "accounts")
if options.accounts: if options.accounts:
activeaccountnames = options.accounts activeaccountnames = options.accounts
activeaccountnames = activeaccountnames.split(",") activeaccountnames = [x.lstrip() for x in activeaccountnames.split(",")]
allaccounts = accounts.getaccountlist(self.config) allaccounts = accounts.getaccountlist(self.config)
for accountname in activeaccountnames: for accountname in activeaccountnames:

View File

@ -66,13 +66,12 @@ class IMAPRepository(BaseRepository):
self.kathread.start() self.kathread.start()
def stopkeepalive(self): def stopkeepalive(self):
if not hasattr(self, 'kaevent'): if self.kaevent is None:
# Keepalive is not active. return # Keepalive is not active.
return
self.kaevent.set() self.kaevent.set()
del self.kathread self.kathread = None
del self.kaevent self.kaevent = None
def holdordropconnections(self): def holdordropconnections(self):
if not self.getholdconnectionopen(): if not self.getholdconnectionopen():