X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=dc7b386f23c32abbba3a8e8ad8966764ce9d0c8c;hb=40de245862a26f008c97ea7460620872bda808ae;hp=0975fe610415c895965a1a150984fcab9ab9c428;hpb=c9eb047c6ca2e1c0ef48560110a53ed1acb6330f;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 0975fe61..dc7b386f 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -118,6 +118,7 @@ list." (defun notmuch-mua-mail (&optional to subject other-headers continue switch-function yank-action send-actions) + "Invoke the notmuch mail composition window." (interactive) (when notmuch-mua-user-agent-function @@ -125,6 +126,10 @@ list." (when (not (string= "" user-agent)) (push (cons "User-Agent" user-agent) other-headers)))) + (unless (mail-header 'from other-headers) + (push (cons "From" (concat + (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers)) + (message-mail to subject other-headers continue switch-function yank-action send-actions) (message-sort-headers)