offlineimap.conf: allow non-spaces in the account list
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
436e82531b
commit
c992f58530
@ -38,7 +38,7 @@ except:
|
|||||||
# FIXME: spaghetti code alert!
|
# FIXME: spaghetti code alert!
|
||||||
def getaccountlist(customconfig):
|
def getaccountlist(customconfig):
|
||||||
# Account names in a list.
|
# Account names in a list.
|
||||||
return customconfig.getsectionlist('Account')
|
return [name.lstrip() for name in customconfig.getsectionlist('Account')]
|
||||||
|
|
||||||
|
|
||||||
class Account(CustomConfig.ConfigHelperMixin):
|
class Account(CustomConfig.ConfigHelperMixin):
|
||||||
|
Loading…
Reference in New Issue
Block a user