unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Reusing descriptive sender name when replying
@ 2022-01-31 19:14 inasprecali
  2022-02-05  0:35 ` David Bremner
  0 siblings, 1 reply; 6+ messages in thread
From: inasprecali @ 2022-01-31 19:14 UTC (permalink / raw)
  To: notmuch

Hello, I have a question which is specifically about the Emacs
frontend, but which could be about notmuch in general.  For your
information, I’m using notmuch 0.31.4 and GNU Emacs 27.1.

When pressing "r" to reply to a message, invoking the function
"notmuch-show-reply-sender", the "From:" address used in the reply
is automatically deduced from the message I’m currently replying
to (looking at the code, it looks like it uses the
notmuch-reply(1) command).  While the address itself is correct,
the "real", descriptive name (the one used before the actual mail
address in angled brackets, apologies if this is not the right
terminology) seems to be always taken from the user.name setting
in the .notmuch-config file, if any.  If it is not set, a
descriptive name is not used at all and the address alone is used.

For example, if we have a message with the following headers:

From: Foo <foo@foo.org>
To: Bar <bar@bar.org>

the function notmuch-show-reply-sender generates these headers,
assuming that user.name in .notmuch-config is not set:

From: bar@bar.org
To: Foo <foo@foo.org>

If user.name is set in the main notmuch configuration file, let’s
say to "Baz", I get these initial headers:

From: Baz <bar@bar.org>
To: Foo <foo@foo.org>

My question is: is it possible to automatically reuse the same
"descriptive" name in the From: header?  I’d like the following to
be automatically generated just by looking at the original message
to be replied to, using the same examples as before.  The To:
header already reuses the same name, as expected.

From: Bar <bar@bar.org>
To: Foo <foo@foo.org>

Thank you for your time.\r

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-11 16:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 19:14 Reusing descriptive sender name when replying inasprecali
2022-02-05  0:35 ` David Bremner
2022-02-05 11:27   ` inasprecali
2022-02-05 13:02     ` Dan Čermák
2022-02-05 18:34     ` David Bremner
2022-02-11 16:55     ` Alexander Adolf

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).