Hi Alan,

alan.schm...@polytechnique.org writes:

> Hello,
> I use several email addresses, and I would like to customize the smtp
> server and the signature I use for each of them. Is there a notmuch way
> of doing this? I’ve looked at
> https://www.emacswiki.org/emacs/SendingMail#SmtpMail and I see that I
> can set a particular header to set the smtp server, but I don’t know if
> there is a feature like gnus posting styles in notmuch.

I use gnus-alias for something like that:
--8<---------------cut here---------------start------------->8---
(use-package gnus-alias
  :ensure t
  :after notmuch
  :commands (gnus-alias-determine-identity)
  :hook ((message-setup . gnus-alias-determine-identity))
  :bind (:map notmuch-message-mode-map
              ("C-c i" . gnus-alias-select-identity))
   gnus-alias-default-identity "default"
   gnus-alias-overlay-identities t
   gnus-alias-override-user-mail-address t
      nil ;; Does not refer to any other identity
      "Dan Čermák <*snip*>" ;; From Header
      nil ;; Organization header
      (("Fcc" . "*snip*/sent-mail")) ;; List of extra headers
      nil ;; No extra body text
      nil ;; Signature
      "Dan Čermák <dan.cer...@posteo.net>"
      (("Fcc" . "posteo/Sent"))

   '(("personal-redacted" ("any" "snip*" both) "default")
     ("personal-posteo" ("any" "dan.cer...@posteo.net" both) "posteo"))))
--8<---------------cut here---------------end--------------->8---

Hope this helps,

notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to