🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Michael Bain Mon, 09 Sep 1991 23:49
Different rn/trn signatures?
#569
Author: Michael Bain
Date: Mon, 09 Sep 1991 23:49
17 lines
1268 bytes
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.

(A new feature of rn 4.4?)


-- 
Michael "Poppa" Bain                                    (206) 393-9526
Boeing Commercial Airplane Group     meb4593@galileo.rtn.ca.boeing.com
FJ1200 Pilot for Team Calamari       DOD# 757              AMA# 565985
		       "Loud Pipes Save Lives!"
Re: Different rn/trn signatures?
#595
Author: Rob Bernardo
Date: Fri, 13 Sep 1991 02:24
42 lines
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
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