Article View: news.software.readers
Article #595Re: Different rn/trn signatures?
From: Rob Bernardo
Date: Fri, 13 Sep 1991 02:24
Date: Fri, 13 Sep 1991 02:24
42 lines
2444 bytes
2444 bytes
meb4593@galileo.rtn.ca.boeing.com (Michael Bain) wrote:
>
>How would one change the .signature file for different newsgroups? I
>envision a hook that would be executed when entering/exiting a
>newsgroup that would allow me to copy different files to .signature.
>
>I know that .signatures are actually a function of inews, however it
>seems that it would be easier to customize rn/trn through macros of
>some kind.
I implemented this on my system. The idea is to make the applicable
programs use an environmental variable to get a non-default signature
file name, and for the user to set this variable in KILL files for
certain news groups where the non-default signature file is desired.
Specifically, the changes to the sources are as follows:
1. In Pnews.SH and Rnmail.SH (of rn and trn) and inews
(of cnews) I added a variable
newssigfile=${NEWSSIGFILE:-$HOME/.signature}
2. In kfile.c (of cnews), I switched the order in which
the newsgroup-specific and global kill files are processed, so
that the global one precedes the newsgroup-specific one,
so that the latter can override the former.
3. There was also the change to the man page for inews (of cnews)
to mention use of the variable NEWSSIGFILE..
In my global kill file (i.e. $HOME/News/KILL), I have a line of the form:
& -ENEWSSIGFILE=[path of usual sig file]
and in the kill file for certain news groups I have a similar line giving
the path of the sig file I use for those news groups.
If there is any interest, I can post the 2 patches (rn/trn & cnews).
Which news group(s) would be the correct place to post them?
--
Rob Bernardo Mt. Diablo Software Solutions
email: rob@mtdiablo.Concord.CA.US home phone: (510) 827-4301
Technical Details
Message-ID:
<1991Sep13.022447.20434@mtdiablo.Concord.CA.US>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!boo!mtdiablo!robReferences:
<548@galileo.rtn.ca.boeing.com>Show Full Headers
Complete Article Headers
Message-ID: <1991Sep13.022447.20434@mtdiablo.Concord.CA.US> Subject: Re: Different rn/trn signatures? Date: Fri, 13 Sep 1991 02:24:47 +0000 From: rob@mtdiablo.Concord.CA.US (Rob Bernardo) References: <548@galileo.rtn.ca.boeing.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.readers.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!boo!mtdiablo!rob Newsgroups: news.software.readers Organization: Mt. Diablo Software Solutions Lines: 42