unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Alexander Adolf <alexander.adolf@condition-alpha.com>
To: inasprecali <inasprecali@disroot.org>,
	David Bremner <david@tethera.net>,
	notmuch@notmuchmail.org
Subject: Re: Reusing descriptive sender name when replying
Date: Fri, 11 Feb 2022 17:55:39 +0100	[thread overview]
Message-ID: <5d4247df0c393a8be05afc5732be0e6d@condition-alpha.com> (raw)
In-Reply-To: <87r18h365k.fsf@piccione>

inasprecali <inasprecali@disroot.org> writes:

> [...]
> Setting the notmuch-always-prompt-for-sender variable to t does not
> help, since its description says (as of 0.31.4): [...]

The documentation of notmuch-always-prompt-for-sender describes that
behaviour rather clearly:
---------------------------- Begin Quote -----------------------------
Always prompt for the From: address when composing or forwarding a message.

This is not taken into account when replying to a message, because in that case
the From: header is already filled in by notmuch.
----------------------------- End Quote ------------------------------
So will not have an effect for replies. Which seems to make sense to me,
as that way the reply then comes from the account that the other guy
sent his message to in the first place.

Are you suing any text completion package in emacs (e.g. company)?
Notmuch provides completion candidates for email addresses, too. Thus,
when I'm unhappy with the from address in the message composition
buffer, I just move the cursor to the beginning of the "From:" field,
type C-k to clear it, and start typing my name. The text completion
automatically pops up a list of candidate addresses (including names)
from the notmuch database. Depending on the completion package you are
using, you may have to trigger completion manually, though. Still not
great, but it works even if you forget to add the prefix to the command.

How about this (off the top of my head):
notmuch-always-prompt-for-sender could admittedly be seen as a bit of a
misnomer, since it prompts always, except when it's a reply (i.e. not
really always). A new variable could perhaps be added (say,
notmuch-always-prompt-for-sender-reply) that changes the behaviour. When
both, notmuch-always-prompt-for-sender and this new variable are set to
t, then the user is also prompted for the sender address when replying.
If the new variable defaulted to nil, the change would even be backwards
compatible (i.e. no change of behaviour for existing emacs
configurations).

On rare occasions I have a similar use-case as you. If someone sends
email to a generic email address (e.g. sales@example.com), I want to
reply with my personal address to give it a more personal touch. This
doesn't occur often for me, so I have been able to live with manually
updating the "From:" field in the composition window (with support from
a text completion package as described). I have thus never felt the need
for a more automated solution like you are asking for, but have some
sympathy for you request. But then I'm not a developer, so it'll be for
others to decide.


Hoping to have helped,

  --alexander

      parent reply	other threads:[~2022-02-11 16:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d4247df0c393a8be05afc5732be0e6d@condition-alpha.com \
    --to=alexander.adolf@condition-alpha.com \
    --cc=david@tethera.net \
    --cc=inasprecali@disroot.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).