unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / Atom feed
* Programmatically set "From", Ispell dictionary and signature based on recipient
@ 2020-11-17 19:38 Jorge P. de Morais Neto
  2020-11-17 20:54 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge P. de Morais Neto @ 2020-11-17 19:38 UTC (permalink / raw)
  To: notmuch

Hi.  I use Notmuch 0.31.2 on Emacs 27.1.50.  When I compose mail to a
mailing list, I would like Emacs to automatically set:
1. "From" header to ~"Jorge P. de Morais Neto" <jorge+list@disroot.org>~
2. Ispell dictionary to "en_US"
3. ~message-signature-file~ to "~/.signature--english" (and it should
   actually insert the corresponding file as signature)

Is there an easy way to do it, or do I have write Elisp and put it in
some Message mode hook?

Regards

-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- If an email of mine arrives at your spam box, please notify me.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]

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

* Re: Programmatically set "From", Ispell dictionary and signature based on recipient
  2020-11-17 19:38 Programmatically set "From", Ispell dictionary and signature based on recipient Jorge P. de Morais Neto
@ 2020-11-17 20:54 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2020-11-17 20:54 UTC (permalink / raw)
  To: Jorge P. de Morais Neto, notmuch

"Jorge P. de Morais Neto" <jorge+list@disroot.org> writes:

> Hi.  I use Notmuch 0.31.2 on Emacs 27.1.50.  When I compose mail to a
> mailing list, I would like Emacs to automatically set:
> 1. "From" header to ~"Jorge P. de Morais Neto" <jorge+list@disroot.org>~
> 2. Ispell dictionary to "en_US"
> 3. ~message-signature-file~ to "~/.signature--english" (and it should
>    actually insert the corresponding file as signature)
>
> Is there an easy way to do it, or do I have write Elisp and put it in
> some Message mode hook?

An easy-ish solution would be to use message-templ (available in debian
as elpa-message-templ). I say "easy-ish" because it's a bit obscure; if
you're not using Debian you'll have to install it from source.

       https://salsa.debian.org/emacsen-team/message-templ

I think there are other solutions derived from Gnu's, but I'll let
someone with personal experience speak to those.

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

end of thread, other threads:[~2020-11-17 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 19:38 Programmatically set "From", Ispell dictionary and signature based on recipient Jorge P. de Morais Neto
2020-11-17 20:54 ` David Bremner

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git