Possible bug: wrong from address when forwarding

Pieter Praet pieter at praet.org
Sat Jul 2 08:53:53 PDT 2011


---
Either enable `notmuch-always-prompt-for-sender', or apply this
quick-fix patch, which uses `name' and `primary_email' as configured
in your .notmuch-config if aforementioned isn't enabled.

 emacs/notmuch-mua.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 274c5da..27c6884 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -213,7 +213,9 @@ the From: address first."
             (user-full-name (car address-components))
             (user-mail-address (cadr address-components)))
        (notmuch-mua-forward-message))
-    (notmuch-mua-forward-message)))
+    (let* ((user-full-name (notmuch-user-name))
+           (user-mail-address (notmuch-user-primary-email)))
+    (notmuch-mua-forward-message))))
 
 (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender)
   "Invoke the notmuch reply window."
-- 
1.7.5.4


More information about the notmuch mailing list