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:
parent
88e8a4895e
commit
0b824bdc49
@ -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:
|
||||||
|
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user