From 36dcbdeff6de2612e70fe58bdbc6c5b979b0eafa Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Oct 2010 16:58:44 -0700 Subject: emacs: Explicitly set the From address when composing a new message. Previously, underlying emacs code was setting this header. Now, we do the right thing and query the notmuch configuration for the default value here. --- emacs/notmuch-mua.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs/notmuch-mua.el') 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) -- cgit v1.2.3