🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Cerebus The Aardvark Wed, 22 Mar 1995 19:32
Multiple signature files?
#7329
Author: Cerebus The Aardvark
Date: Wed, 22 Mar 1995 19:32
16 lines
1543 bytes
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...

--
| kreme@netcom.com \     1015 South Gaylord, Denver, CO 80209 #100      |
|   PGP Fingerprint \ 1D 5E F7 C8 7E C2 F9 87  0F 86 C9 B0 D2 63 9C B2  |
| [303/722-2009] Vox \ I haven't seen anything like that since the      |
| [303/777-2911] Data \ Pin~ata death duels on Nuevo Tiajuana!!         |
Re: Multiple signature files?
#7335
Author: 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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads