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:
Nicolas Sebrecht 2016-07-24 19:37:59 +02:00
parent 436e82531b
commit c992f58530

View File

@ -38,7 +38,7 @@ except:
# FIXME: spaghetti code alert!
def getaccountlist(customconfig):
# Account names in a list.
return customconfig.getsectionlist('Account')
return [name.lstrip() for name in customconfig.getsectionlist('Account')]
class Account(CustomConfig.ConfigHelperMixin):