X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=ddaec676f4232b614920c7c0d66d88cb42d6b7d2;hb=c506e1034b5adb54b3e4f8d3e59086756f2bb126;hp=0ad079ffaea88a38a2a1cc9ed594341ec3bc0265;hpb=e229bfa5aa68ce0e9076b04cac7774a754b47ab2;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 0ad079ff..ddaec676 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 (assoc "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)