🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #15648

Re: Random .signature changer

#15648
From: Peter Kappesser
Date: Tue, 28 Feb 1995 10:02
26 lines
2306 bytes
Recently in news.software.readers, jdfalk@cais.com wrote:
>[continuing a thread I started in news.software.readers]
>
>	Well, based on the script I was already using and the ones posted
>here, I came up with something which is /close/ to what I'd been hunting
>for -- it now randomly chooses each time the .signature file is read. 
>	Now I just need to steal s'more code (unless somebody can think 
>of something simpler) so that, for example, I use one specific file every 
>time I'm reading alt.internet.media-coverage, but keeps scrambling in all 
>the other groups.

While [t]rn is running, it keeps the name of the newsgroup you're currently
reading in $HOME/.rnlast (the first line of the file). You could read this
to find out which group you're in and select the file you want, or if there
is no file for that group, generate a random sig. Easiest way I think
would be to have a .sigs directory, and name the group's signature file
after the group so you don't have to do any further looking-up; it's the
same way most folks are handling killfiles nowadays (see the trn FAQ).

--
"Do I contradict myself? Very well then I contradict myself,
(I am large, I contain multitudes.) (No you don't.) (Yes, I do.)
(No you don't!) (Yes I do!!) HEY! I'm trying to write here!!"
				-- "Leaves of Grass", first draft
pjkappes@mailbox.syr.edu (Peter Kappesser)
Technical Details
Message-ID: <3iusau$4a4@newstand.syr.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!news.kei.com!travelers.mail.cornell.edu!newstand.syr.edu!forbin.syr.edu!pjkappes
References: <3iearp$227@news.cais.com> <3immpm$kie@news.cais.com>

Show Full Headers
Complete Article Headers
Message-ID: <3iusau$4a4@newstand.syr.edu>
Subject: Re: Random .signature changer
Date: Tue, 28 Feb 1995 10:02:06 +0000
From: pjkappes@forbin.syr.edu (Peter Kappesser)
References: <3iearp$227@news.cais.com> <3immpm$kie@news.cais.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!news.kei.com!travelers.mail.cornell.edu!newstand.syr.edu!forbin.syr.edu!pjkappes
Newsgroups: news.software.readers,comp.lang.perl
Organization: Not Quite Syracuse University, Syracuse, NY
Lines: 25
Reply-To: pjkappes@mailbox.syr.edu
NNTP-Posting-Host: forbin.syr.edu
Keywords: perl signature