From ed27f91822c2be512054575b32b4c21bbca1e8eb Mon Sep 17 00:00:00 2001 From: Stephen Brennan Date: Thu, 28 Aug 2025 16:42:09 -0700 Subject: [PATCH] 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 --- modules/email/notmuch/autoload.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/email/notmuch/autoload.el b/modules/email/notmuch/autoload.el index de125c6c0..bad85b927 100644 --- a/modules/email/notmuch/autoload.el +++ b/modules/email/notmuch/autoload.el @@ -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 ()