Gnus development mailing list
 help / color / mirror / Atom feed
* different signatures
@ 1996-08-21 14:51 Peter Svaar
  1996-08-22 13:54 ` Jack Vinson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Svaar @ 1996-08-21 14:51 UTC (permalink / raw)



does anyone have a piece of code for using different signatures in different
newsgroups? and possibly in mail as well, or at least a different signature
i mail from the one you use for news.

thanx.

-- 
Svarte penger - rekker lenger!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: different signatures
  1996-08-21 14:51 different signatures Peter Svaar
@ 1996-08-22 13:54 ` Jack Vinson
  1996-08-22 15:40 ` Lars Magne Ingebrigtsen
  1996-08-22 17:18 ` Michael Harnois
  2 siblings, 0 replies; 4+ messages in thread
From: Jack Vinson @ 1996-08-22 13:54 UTC (permalink / raw)


>>>>> "PS" == Peter Svaar <peter@svaar.no> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: different signatures
  1996-08-21 14:51 different signatures Peter Svaar
  1996-08-22 13:54 ` Jack Vinson
@ 1996-08-22 15:40 ` Lars Magne Ingebrigtsen
  1996-08-22 17:18 ` Michael Harnois
  2 siblings, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-08-22 15:40 UTC (permalink / raw)


Peter Svaar <peter@svaar.no> writes:

> does anyone have a piece of code for using different signatures in different
> newsgroups? and possibly in mail as well, or at least a different signature
> i mail from the one you use for news.

Howzabout:

(setq message-signature
      (lambda ()
	(cond
	 ((null gnus-newsgroup-name)
	  "Lala")
	 ((string-match "^nnml:" gnus-newsgroup-name)
	  "This is my mail group signature")
	 (t
	  "This is my standard signature"))))

Embellish as needed.

-- 
  "Yes.  The journey through the human heart 
     would have to wait until some other time."


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: different signatures
  1996-08-21 14:51 different signatures Peter Svaar
  1996-08-22 13:54 ` Jack Vinson
  1996-08-22 15:40 ` Lars Magne Ingebrigtsen
@ 1996-08-22 17:18 ` Michael Harnois
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Harnois @ 1996-08-22 17:18 UTC (permalink / raw)
  Cc: ding

On Wed, 21 Aug 1996 16:51:21 +0200, Peter Svaar <peter@svaar.no> wrote:
>does anyone have a piece of code for using different signatures in different
>newsgroups? and possibly in mail as well, or at least a different signature
>i mail from the one you use for news.

the tm mime add-on has this built in.

--
Michael Harnois (mharnois@sbt.net)
No Organization Whatsoever


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-08-22 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-21 14:51 different signatures Peter Svaar
1996-08-22 13:54 ` Jack Vinson
1996-08-22 15:40 ` Lars Magne Ingebrigtsen
1996-08-22 17:18 ` Michael Harnois

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 NNTP newsgroup(s).