X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=dc7b386f23c32abbba3a8e8ad8966764ce9d0c8c;hb=efee51ba756a589998c1894f6574ebe8a6e280d4;hp=0ad079ffaea88a38a2a1cc9ed594341ec3bc0265;hpb=e229bfa5aa68ce0e9076b04cac7774a754b47ab2;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 0ad079ff..dc7b386f 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -126,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)