aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Michal Sojka <sojkam1@fel.cvut.cz>2012-05-01 23:10:47 +0200
committerGravatar David Bremner <bremner@debian.org>2012-05-06 08:49:38 -0300
commite02c179c8f6cddcc0b6457ccd0fd40186c75e3db (patch)
tree7bee060bdafd9c5e6b4ed7e47bd7df68eaf0f80f
parent832fd1a7a63ced91d9519d217ba187ee08eea13c (diff)
emacs: Do not pass stderr of notmuch reply to JSON parser
Sometimes, notmuch reply outputs something to stderr, for example: "Failed to verify signed part: Cannot verify multipart/signed part: unsupported signature protocol". When this happens, replying in emacs fails, because emacs cannot parse the error message as JSON. This patch causes emacs to ignore stderr when reading reply from notmuch.
-rw-r--r--emacs/notmuch-mua.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index cb89db3a..408b49e0 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -159,7 +159,7 @@ list."
;; Get the reply object as JSON, and parse it into an elisp object.
(with-temp-buffer
- (apply 'call-process (append (list notmuch-command nil (list t t) nil) args))
+ (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))
(goto-char (point-min))
(let ((json-object-type 'plist)
(json-array-type 'list)