]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - emacs/notmuch-lib.el
Emacs: Add address completion mechanism implemented in elisp
[notmuch.git] / emacs / notmuch-lib.el
index 201d7ec8593f376c1ae9f20a3671eff52535e4bc..1c3a9fe1865f13048c23dbc1b00b702cf15f1081 100644 (file)
@@ -232,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.