[PATCH] Don't involve the shell in notmuch searches

David Benjamin davidben at MIT.EDU
Thu Jun 3 17:29:32 PDT 2010


The shell isn't needed to interpret any of the arguments, so don't
bother using it at all.

Signed-off-by: David Benjamin <davidben at mit.edu>
---
 emacs/notmuch.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 57e1140..874ccb9 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -710,10 +710,10 @@ The optional parameters are used as follows:
       (erase-buffer)
       (goto-char (point-min))
       (save-excursion
-	(let ((proc (start-process-shell-command
+	(let ((proc (start-process
 		     "notmuch-search" buffer notmuch-command "search"
 		     (if oldest-first "--sort=oldest-first" "--sort=newest-first")
-		     (shell-quote-argument query))))
+		     query)))
 	  (set-process-sentinel proc 'notmuch-search-process-sentinel)
 	  (set-process-filter proc 'notmuch-search-process-filter))))
     (run-hooks 'notmuch-search-hook)))
-- 
1.7.1.1.gee92



More information about the notmuch mailing list