From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7695 Path: main.gmane.org!not-for-mail From: Jack Vinson Newsgroups: gmane.emacs.gnus.general Subject: Re: different signatures Date: 22 Aug 1996 09:54:52 -0400 Message-ID: References: <199608211451.QAA03648@cray.svaar.no> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147974 8242 80.91.224.250 (20 Oct 2002 21:06:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:06:14 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id HAA21919 for ; Thu, 22 Aug 1996 07:21:04 -0700 Original-Received: from cheux.ecs.umass.edu (cheux.ecs.umass.edu [128.119.82.11]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Thu, 22 Aug 1996 15:57:36 +0200 Original-Received: by cheux.ecs.umass.edu (5.65/DEC-Ultrix/4.3) id AA13053; Thu, 22 Aug 1996 09:54:53 -0400 Original-To: ding@ifi.uio.no In-Reply-To: Peter Svaar's message of Wed, 21 Aug 1996 16:51:21 +0200 Original-Lines: 27 X-Mailer: Red Gnus v0.13/Emacs 19.31 Xref: main.gmane.org gmane.emacs.gnus.general:7695 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7695 >>>>> "PS" == Peter Svaar writes: PS> does anyone have a piece of code for using different signatures in PS> different newsgroups? and possibly in mail as well, or at least a PS> different signature i mail from the one you use for news. Something like this should work. Basically, just check the gnus-newsgroup-name against some regular expression and set the message-signature-file appropriately. I have not tried this code recently, though it has worked in the past. ;; Set the signature file depending on group (defun jmv-set-signature-file () (cond ((string-match "comp.sys.ibm.pc.games" gnus-newsgroup-name) (setq message-signature-file "~/.signature-comp.sys.ibm.pc.games")) (t (setq message-signature-file "~/.signature")) )) (add-hooks message-mode-hook 'jmv-set-signature-file) -- Jack Vinson jvinson@cheux.ecs.umass.edu "I Spit on Your Grave" -- double feature at the drive-in as seen "I Thumb Through Your Magazines" from the Qwik-E mart