From: David Bremner Date: Mon, 23 Nov 2015 12:40:40 +0000 (-0400) Subject: Merge branch 'release' X-Git-Tag: 0.22_rc0~97 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=bceb6516cee170d3ad4b620826d48e90f05a12b1;hp=-c Merge branch 'release' Merge bugfixes applied directly to release --- bceb6516cee170d3ad4b620826d48e90f05a12b1 diff --combined emacs/notmuch-lib.el index 1c3a9fe1,dedcbeb8..89c01a57 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@@ -232,9 -232,6 +232,9 @@@ on the command line, and then retry you "Return the user.other_email value (as a list) from the notmuch configuration." (split-string (notmuch-config-get "user.other_email") "\n" t)) +(defun notmuch-user-emails () + (cons (notmuch-user-primary-email) (notmuch-user-other-email))) + (defun notmuch-poll () "Run \"notmuch new\" or an external script to import mail. @@@ -243,8 -240,9 +243,9 @@@ depending on the value of `notmuch-poll (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.