X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=dedcbeb865562903a2595e0a5883ef0e01a2d8c4;hb=4c7a592d49266d588e717c232bc7aacbe4e16bfb;hp=201d7ec8593f376c1ae9f20a3671eff52535e4bc;hpb=3270eea39f048bc72df1f16bfa1300d7db169a1b;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 201d7ec8..dedcbeb8 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -240,8 +240,9 @@ depending on the value of `notmuch-poll-script'." (interactive) (if (stringp notmuch-poll-script) (unless (string= notmuch-poll-script "") - (call-process notmuch-poll-script nil nil)) - (call-process notmuch-command nil nil nil "new"))) + (unless (equal (call-process notmuch-poll-script nil nil) 0) + (error "Notmuch: poll script `%s' failed!" notmuch-poll-script))) + (notmuch-call-notmuch-process "new"))) (defun notmuch-bury-or-kill-this-buffer () "Undisplay the current buffer.