unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mathias Dahl <brakjoller@gmail.com>
Subject: Re: Gnus: using different e-mail addresses for different groups
Date: 22 Oct 2004 10:36:39 +0200	[thread overview]
Message-ID: <uhdonxi7c.fsf@gmail.com> (raw)
In-Reply-To: m2hdoo9i3s.fsf@seki.fr

Sebastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:

> > Can I train Emacs to use a different e-mail address for
> > different groups? Right now Gnus gets the value from the
> > user-mail-address variable.
> 
> Take a look  to the "posting styles" that let you  define custom headers and
> also evaluations depending on the group you are writing.

Thanks! That was what I wanted. This snippet does what I need:

(setq gnus-posting-styles
      '((".*"
         (address "xyz@abc.com"))
        ("^comp.ifs"
         (address "xyz@123.com"))
        ("emacs"
         (address "xyz@xyz.com"))))

/Mathias

  reply	other threads:[~2004-10-22  8:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-21 15:29 Gnus: using different e-mail addresses for different groups Mathias Dahl
2004-10-21 16:00 ` Sebastien Kirche
2004-10-22  8:36   ` Mathias Dahl [this message]
2004-10-21 16:02 ` Sebastien Kirche
2004-10-21 16:26 ` Tassilo Horn
2004-10-21 16:30 ` Alexandre Russel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uhdonxi7c.fsf@gmail.com \
    --to=brakjoller@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).