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:
parent
12e11429b5
commit
9bd7a21f16
@ -16,6 +16,9 @@ New Features
|
||||
Changes
|
||||
-------
|
||||
|
||||
- no whitespace is stripped from comma-separated arguments passed via
|
||||
the -f option.
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user