-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quote folder names in search query #216
Conversation
When using folder names containing whitespace characters (see PR afewmail#206) the folder part of the notmuch search query needs to be quoted. Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello, |
@nicolasbock I guess this breaks when the output contains double quotes - we just enclose quotes, but not escape. Instead of this patch, can we escape while setting >>> import shlex
>>> print(shlex.quote("foo"))
foo
>>> print(shlex.quote("foo\""))
'foo"' |
Follow on to PR afewmail#216: In cases where the folder name contains characters that should be quoted, use the `shlex.quote()` function to properly format the folder name. Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
Follow on to PR afewmail#216: In cases where the folder name contains characters that should be quoted, use the `shlex.quote()` function to properly format the folder name. Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
Follow on to PR afewmail#216: In cases where the folder name contains characters that should be quoted, use the `shlex.quote()` function to properly format the folder name. Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
When using folder names containing whitespace characters (see PR #206)
the folder part of the notmuch search query needs to be quoted.
Signed-off-by: Nicolas Bock nicolasbock@gmail.com