From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10371 Path: news.gmane.org!not-for-mail From: Sam Peterson Newsgroups: gmane.emacs.gnus.user Subject: Re: Separate signature files for email and groups Date: Fri, 15 Feb 2008 06:04:00 -0800 Organization: University of California, Davis Message-ID: <87bq6iz57z.fsf@nospam.please.ucdavis.edu> References: <87pruylx4a.fsf@nospam.please.ucdavis.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203086736 32273 80.91.229.12 (15 Feb 2008 14:45:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 14:45:36 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Feb 15 15:45:59 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQ1p3-0003gy-F4 for gegu-info-gnus-english@m.gmane.org; Fri, 15 Feb 2008 15:45:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQ1oZ-00011l-FL for gegu-info-gnus-english@m.gmane.org; Fri, 15 Feb 2008 09:45:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!ucdavis!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 40 Original-NNTP-Posting-Host: c-76-114-40-74.hsd1.ca.comcast.net Original-X-Trace: skeeter.ucdavis.edu 1203084186 27694 76.114.40.74 (15 Feb 2008 14:03:06 GMT) Original-X-Complaints-To: usenet@ucdavis.edu Original-NNTP-Posting-Date: Fri, 15 Feb 2008 14:03:06 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:VE1g3uOSrRHJMtsuhHKstyK/BrQ= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80582 X-Mailman-Approved-At: Fri, 15 Feb 2008 09:45:00 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10371 Archived-At: Tassilo Horn on Fri, 15 Feb 2008 08:58:09 +0100 didst step forth and proclaim thus: > Sam Peterson writes: > > Hi Sam, > >> Hello, I know about gnus-posting-styles, but I'm at a bit of a loss as >> to how to customize this variable so that it uses a different >> signature for email messages and newsgroup messages. I've looked >> around but haven't had any luck finding a solution. All advice is >> greatly appreciated. > > You can use something like that: > > (setq gnus-posting-styles > `((".*" > (signature-file "~/.my-mail-sig.txt")) > ("^nntp" > (signature "Foo Bar Baz")))) > > This will use the text of the file ~/.my-mail-sig.txt for every posting, > except it's in a group starting with nntp (= newsgroup). There it will > use the string "Foo Bar Baz" as signature. > > Bye, > Tassilo Actually, I take that back...this *seemed* like it worked, but it stopped working mysteriously, I think I may have got my wires crossed. "^nntp" pattern doesn't seem to match any newsgroups unfortunately. I settled on using a regex of "^nn.+:" for mail groups. I have to be in one of my mail groups for it to work but that's okay by me. -- Sam Peterson skpeterson At nospam ucdavis.edu "if programmers were paid to remove code instead of adding it, software would be much better" -- unknown