unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Pinto <carandraug@gmail.com>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: automatically changing FCC when From changes (or fill FCC only when sending)
Date: Thu, 21 Sep 2023 23:19:37 +0000	[thread overview]
Message-ID: <CAPOrs_1xQHRqPDvs=j7N4jzW7UNt_GkFcWMwAdCpqFq4xiW1jQ@mail.gmail.com> (raw)
In-Reply-To: <87bke2ozy8.fsf@tethera.net>

On Sat, 16 Sept 2023 at 16:17, David Bremner <david@tethera.net> wrote:
>
> David Pinto <carandraug@gmail.com> writes:
>
> [...]
> > Is there a way to either have the FCC header changed when the "From"
> > address changes?  Or maybe only add the FCC header when sending
> > the message?
>
> Generally I think people like the ability to hand-edit the header, so I
> don't think adding it at send time would work for everyone. I do
> something related based on address completion: I update the From header
> based on To.

Thank you for your reply.

I see what you mean, how changing the FCC would prevent the ability to
manually edit the FCC.  But what about updating the FCC when the
"From" changes?

When starting a new message, and assuming that there is more that one
possible "From", the default "From" will often be wrong.  I would also
expect one to set the "From" before any manual changes to "FCC".  If
so, then I think it could make sense to update the "FCC" when the
"From" changes since there would be no manual adjustment to FCC lost.

You mention updating the "From" when the "To" changes with the
notmuch-address-post-completion-functions hook.  Could there be a hook
for when the "From" changes which I could use to change the FCC?

> I use message-templ [1], along with
> notmuch-address-post-completion-functions. My solution is a bit niche
> because message-templ is a bit obscure, but I'm happy to go into details
> if you are interested.

This message-templ seems ideal for another issue of mine.  I will look
more into it.

Thank you
David

  reply	other threads:[~2023-09-21 23:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-16  0:18 automatically changing FCC when From changes (or fill FCC only when sending) David Pinto
2023-09-16 16:17 ` David Bremner
2023-09-21 23:19   ` David Pinto [this message]
2023-09-22 10:25     ` David Bremner
2023-09-22 10:41       ` David Bremner
2023-10-02 10:28       ` David Pinto

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='CAPOrs_1xQHRqPDvs=j7N4jzW7UNt_GkFcWMwAdCpqFq4xiW1jQ@mail.gmail.com' \
    --to=carandraug@gmail.com \
    --cc=david@tethera.net \
    --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).