help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus and multiple Email servers


From: Daniel Fleischer
Subject: Re: Gnus and multiple Email servers
Date: Sun, 21 Nov 2021 23:14:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

Sergey Organov <sorganov@gmail.com> writes:

> Is there handy way of setting it automagically depending on the From:
> field of the outgoing mail?

You can use 'gnus-posting-styles' that matches the group; for example


(setq gnus-posting-styles
    '((".*"     ; Matches all groups of messages
        (address "Daniel Fleischer <danflscr@gmail.com>")
        (signature "\nDaniel Fleischer")
        ("X-Message-SMTP-Method" "smtp smtp.gmail.com 587 
danflscr@gmail.com"))))


will use Google's SMTP, but you can define whatever you want. Read the
documentation since that matching is not like "cond", it iterates over
all clauses, and applies every thing that matches.

-- 

Daniel Fleischer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]