From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Gnus: using different e-mail addresses for different groups Date: 22 Oct 2004 10:36:39 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098434284 8500 80.91.229.6 (22 Oct 2004 08:38:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2004 08:38:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 22 10:37:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CKuvu-0003vI-00 for ; Fri, 22 Oct 2004 10:37:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKv3O-0002C5-Fm for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Oct 2004 04:45:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: news.uni-berlin.de 4lN80kdmwusoRwpTl/hPEQo+nZWsYDb17trycQ9ugCHhFexjXQ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:126005 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21380 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21380 Sebastien Kirche 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