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:

committed by
Nicolas Sebrecht

parent
12e11429b5
commit
9bd7a21f16
@ -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):
|
||||
|
Reference in New Issue
Block a user