tweak(notmuch): include the user's name in From: header

The notmuch/compose function allows selecting between the email
addresses that the user has configured, but the email address is used
directly in the From header. Messages display much nicer in people's
inbox when the From contains a name in addition to an emeail address, so
construct the From header with the user's name as well as the chosen
email address.

Signed-off-by: Stephen Brennan <stephen@brennan.io>
This commit is contained in:
Stephen Brennan
2025-08-28 16:42:09 -07:00
committed by Henrik Lissner
parent 058cb20a12
commit ed27f91822

View File

@@ -116,7 +116,9 @@
(notmuch-mua-mail
nil
nil
(list (cons 'From (completing-read "From: " (notmuch-user-emails))))))
(list (cons 'From (message-make-from
(notmuch-user-name)
(completing-read "From: " (notmuch-user-emails)))))))
;;;###autoload
(defun +notmuch/open-message-with-mail-app-notmuch-tree ()