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 <Sebastian@SSpaeth.de>
Signed-off-by: Dan Christensen <jdc@uwo.ca>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Dan Christensen
2011-04-28 15:26:07 +02:00
committed by Nicolas Sebrecht
parent 12e11429b5
commit 9bd7a21f16
2 changed files with 4 additions and 2 deletions

View File

@ -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):