[PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser
Michal Sojka writes: > 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. pushed. d
Re: [PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser
Michal Sojka sojk...@fel.cvut.cz writes: 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. pushed. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser
On Tue, May 1, 2012 at 3:10 PM, Michal Sojka wrote: > 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. LGTM, as I said in the other thread. Thanks for the fix. -- Adam
Re: [PATCH] emacs: Do not pass stderr of notmuch reply to JSON parser
On Tue, May 1, 2012 at 3:10 PM, Michal Sojka sojk...@fel.cvut.cz wrote: 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. LGTM, as I said in the other thread. Thanks for the fix. -- Adam ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH] 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. --- emacs/notmuch-mua.el |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 87bd88d..49db603 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -113,7 +113,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) -- 1.7.10 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch