* Possible bug: wrong from address when forwarding
@ 2011-07-01 20:36 Mark Walters
2011-07-02 15:53 ` Pieter Praet
0 siblings, 1 reply; 2+ messages in thread
From: Mark Walters @ 2011-07-01 20:36 UTC (permalink / raw)
To: notmuch
Hi
I am seeing the following bug in the emacs interface: when I forward a
message (f when showing a message) I get a message with the from
address filled in by the host operating system (walters@hostname)
rather than my notmuch configured address. If I compose mail normally
notmuch fills in the correct (notmuch configured) address.
The problem could be in my setup but as far as I can see in
notmuch-mua.el notmuch-mua-forward-message and notmuch-mua-mail behave
differently: the latter fills in the from header with
notmuch-user-primary-email and the former does not.
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible bug: wrong from address when forwarding
2011-07-01 20:36 Possible bug: wrong from address when forwarding Mark Walters
@ 2011-07-02 15:53 ` Pieter Praet
0 siblings, 0 replies; 2+ messages in thread
From: Pieter Praet @ 2011-07-02 15:53 UTC (permalink / raw)
To: Mark Walters, notmuch
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-02 15:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-01 20:36 Possible bug: wrong from address when forwarding Mark Walters
2011-07-02 15:53 ` Pieter Praet
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).