From 9bd7a21f16fb3a57cbf141b27f5d3f886dd82854 Mon Sep 17 00:00:00 2001 From: Dan Christensen Date: Thu, 28 Apr 2011 15:26:07 +0200 Subject: [PATCH] Don't strip whitespace in the -f option Allow leading and trailing spaces in folder names specified on the command line. Reviewed-by: Sebastian Spaeth Signed-off-by: Dan Christensen Signed-off-by: Nicolas Sebrecht --- Changelog.draft.rst | 3 +++ offlineimap/init.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 0a85888..d0125b7 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -16,6 +16,9 @@ New Features Changes ------- +- no whitespace is stripped from comma-separated arguments passed via + the -f option. + Bug Fixes --------- diff --git a/offlineimap/init.py b/offlineimap/init.py index 296b84b..84983a4 100644 --- a/offlineimap/init.py +++ b/offlineimap/init.py @@ -240,8 +240,7 @@ class OfflineImap: #custom folder list specified? if options.folders: - foldernames = map(lambda s: s.strip(), - options.folders.split(",")) + foldernames = options.folders.split(",") folderfilter = "lambda f: f in %s" % foldernames folderincludes = "[]" for accountname in accounts.getaccountlist(config):