emacs-notmuch: Set variables based on From when composing

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

Date: Mon, 12 Mar 2018 15:03:55 +0100

To: notmuch@notmuchmail.org

Cc:

From: Thomas Schneider


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.

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.

In fact, this would be useful for more variables, such as
message-user-organization or message-signature(-file).  Like
notmuch-fcc-dirs, just for other variables.

I’d appreciate any pointers.

Thanks,
	--qsx


[0] https://emacs.stackexchange.com/questions/12649/local-hosts-fqdn-in-emacs-25
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: