X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=89c01a578ccdfe331599f21fc3174d1e15807923;hp=1c3a9fe1865f13048c23dbc1b00b702cf15f1081;hb=bceb6516cee170d3ad4b620826d48e90f05a12b1;hpb=c946356cdc026b6d65662075487eb058f5c96c2b diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 1c3a9fe1..89c01a57 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -243,8 +243,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.