[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52205: Allow configuring multiple mail accounts for smtpmail.el
From: |
Lars Ingebrigtsen |
Subject: |
bug#52205: Allow configuring multiple mail accounts for smtpmail.el |
Date: |
Sun, 19 Dec 2021 11:57:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Philip Kaludercic <philipk@posteo.net> writes:
>>>> Or we could add a command like `message-update-smtp-method-header' and
>>>> people could call that (or add it to their hooks) after altering their
>>>> From (or whatever) headers.
>>>
>>> So if the mechanism is supposed to be kept general (instead of just
>>> checking the From header), how would this differ from the already
>>> existing message-send-mail-hook?
>>
>> How a command would differ from a hook? I'm not sure I understand the
>> question.
>
> Oh, sorry I misunderstood your suggestion. So you are thinking of
> something that would be configured like:
>
> ;; `message-server-alist' would match the From header[0] if it is a string,
> ;; or call a function in the current message buffer if it is a function.
> (setq message-server-alist
> '(("foo@mail.com" . "smtp.mail.com")
> ("bar@post.de" . "post-spuep.de")))
>
> (add-hook 'message-send-mail-hook #'message-update-smtp-method-header)
No, I meant:
>>>> Or we could add a command like `message-update-smtp-method-header' and
>>>> people could call that
> If so, then couldn't the add-hook just be dropped, and message always
> checks message-server-alist before sending a message?
Yes.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, (continued)
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/01
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/01
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/01
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/02
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/03
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/04
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/04
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/13
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/14
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/18
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el,
Lars Ingebrigtsen <=
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Philip Kaludercic, 2021/12/19
- bug#52205: Allow configuring multiple mail accounts for smtpmail.el, Lars Ingebrigtsen, 2021/12/22