aboutsummaryrefslogtreecommitdiff
path: root/notmuch.el
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-11-24 19:08:53 -0800
committerCarl Worth <cworth@cworth.org>2009-11-24 19:08:53 -0800
commitadef90791867001f859d3b3fdcb46d265148cd11 (patch)
treedc215f428886defad720915722a630d44c86e278 /notmuch.el
parent93af7b574598637c2766dd1f8ef343962c9a8efb (diff)
notmuch.el: Quote arguments to protect from shell interpretation.
We want to allow the user to be able to use search expressions with parentheses and semi-colons, etc. and we definitely don't want the shell interpreting those!
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch.el b/notmuch.el
index 9a20954..551048a 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1033,7 +1033,7 @@ This function advances point to the next line when finished."
(let ((proc (start-process-shell-command
"notmuch-search" buffer notmuch-command "search"
(if oldest-first "--sort=oldest-first" "--sort=newest-first")
- query)))
+ (shell-quote-argument query))))
(set-process-sentinel proc 'notmuch-search-process-sentinel)
(set-process-filter proc 'notmuch-search-process-filter))))
(run-hooks 'notmuch-search-hook)))