🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7335

Re: Multiple signature files?

#7335
From: Milt Epstein
Date: Mon, 27 Mar 1995 20:09
39 lines
2796 bytes
kreme@netcom.com (Cerebus The Aardvark) writes:

>Is there anyway to setup nn to use multiple signature files (and no, I
>don't mean random sigs, I have a perl script to do that).
>
>There are some groups I subscribe to (well, one in particular) where I
>would very much like to use a completely different signature.  Since I am
>doing genealogy research, I would like my signature file in the
>soc.genealogy.* groups to reflect the families I am researching.
>
>Is there anyway to automate this process with nn?  I'd hate to have to
>remember to read a particular sig file each time I post...

I thought there might be a way to do this with an "on entry" macro,
but that doesn't appear to be the case.  For example, I was thinking
that you could have such a macro for the desired group that "locally"
(for just that group) changed the value of the variable that pointed
to the sig file.  Unfortunately, there doesn't seem to be such a
variable (seems like there should be; this is for 6.4.18 -- perhaps
6.5 has such a variable).

Another possibility would have been to have the on entry macro do a
system call that moved the proper sig file into .signature; then you
could use an "on exit" macro to undo this -- but unfortunately, there
doesn't seem to be any such thing as an "on exit" macro.

Now, I do know a way you can do this, but it's a little more complex
than either of the above possibilities.  You can make your own
personal copy of nn's aux script and modify it to do this.  The aux
script is a shell script that is called when nn does things like post,
mail, etc.  There is a hard coded call to read in the $HOME/.signature
file when the appropriate variables are set (the ones that control
appending and querying for sigs).

--
Milt Epstein
Visiting Research Programmer    National Animal Poison Control Center (NAPCC)
epstein@napcc-hp.cvm.uiuc.edu            College of Veterinary Medicine (CVM)
(or mepstein@uiuc.edu)      University of Illinois at Urbana-Champaign (UIUC)
Technical Details
Message-ID: <epstein.796334974@napcc-hp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!napcc-hp!epstein
References: <kremeD5uwyI.JLM@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <epstein.796334974@napcc-hp>
Subject: Re: Multiple signature files?
Date: Mon, 27 Mar 1995 20:09:34 +0000
From: epstein@napcc-hp.cvm.uiuc.edu (Milt Epstein)
References: <kremeD5uwyI.JLM@netcom.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!napcc-hp!epstein
Newsgroups: news.software.nn
Organization: University of Illinois at Urbana
Lines: 39
Reply-To: mepstein@uiuc.edu
NNTP-Posting-Host: napcc-hp.cvm.uiuc.edu