Re: emacs-notmuch: Set variables based on From when composing

Subject: Re: emacs-notmuch: Set variables based on From when composing

Date: Fri, 16 Mar 2018 09:29:39 -0300

To: Thomas Schneider, notmuch@notmuchmail.org

Cc:

From: David Bremner


Thomas Schneider <qsx@chaotikum.eu> writes:

> Hello list,
>
> I use notmuch with the Emacs frontend and multiple accounts.  I’d like
> it to set the domain part of Message-Id header of any mail I compose to
> something sensible, e.g. the FQDN of the host (which does not seem to be
> easy, see [0]) or the domain part of the From header.

There is some discussion on the wiki of using gnus-alias and
message-templ with notmuch. The latter is more about setting headers.

>
> I was thinking about setting message-user-fqdn based on the From header
> in an appropriate hook, but I haven’t found yet where and how to do
> this.

There is notmuch-mua-send-hook (which by default just runs message-send-hook)

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: