X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=1c3a9fe1865f13048c23dbc1b00b702cf15f1081;hb=10e933a3bb2aec6172b513944765ad5fd39919f2;hp=e16a1b971bd5e29bb3b78ba9f3a823c0b39acb85;hpb=0c565fa29fc29f74209d4343e2fc88f3b8008aaa;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index e16a1b97..1c3a9fe1 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -25,6 +25,10 @@ (require 'mm-decode) (require 'cl) +(unless (require 'notmuch-version nil t) + (defconst notmuch-emacs-version "unknown" + "Placeholder variable when notmuch-version.el[c] is not available.")) + (autoload 'notmuch-jump-search "notmuch-jump" "Jump to a saved search by shortcut key." t) @@ -228,6 +232,9 @@ on the command line, and then retry your notmuch command"))) "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.