From c992f5853087bcee72291e0f32d591697b07299c Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 24 Jul 2016 19:37:59 +0200 Subject: [PATCH] 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 --- offlineimap/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index a40fad2..4b02b13 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -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):