🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #45703

Re: [slrn] select signature while replying ?

#45703
From: Peppe
Date: Wed, 06 Jan 1999 00:00
38 lines
1969 bytes
Thus wrote Krzysztof P. Jasiutowicz <kpjas@priv.onet.pl>
> Hello all,
> I would like to select a signature file dependent on
> newsgroup's name :
> other for news.software.readers and other for pl.comp.os.linux etc
> I believe it can be done through a macro but how ?
> Any hints are most welcome.

I do something like that for my "realname" setting. If the current
group includes one of two substrings, it gets a special value. To do
so I have the following in my ~/.slrn.sl file.

define my_realname ()
{
    if (is_substr (current_newsgroup (), "k-net")
        or is_substr (current_newsgroup (), "bergsoe"))
        
        set_string_variable ("realname", "Peppe -pbk3104");
    else
        set_string_variable ("realname", "Peppe");
}

To include this file, I add

    interpret .slrn.sl

to my ~/.slrnrc file.

You can probably tweak this into doing the right thing for you.

Peppe
-- 
Preben Guldberg          __/-\__  He said: "Life is like a sewer - what you get
c928400@student.dtu.dk    (o o)     out of it depends on what you put into it."
----------------------oOOo (_) oOOo   --Tom Lehrer: We Will All Go
http://www.student.dtu.dk/~c928400/     Together When We Go (comment)

Technical Details
Message-ID: <slrn796nti.mcd.c928400@urdybet.pbk.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn793pdn.n9.kpjas@apex.mount.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn796nti.mcd.c928400@urdybet.pbk.dk>
Subject: Re: [slrn] select signature while replying ?
Date: Wed, 06 Jan 1999 00:00:00 +0000
From: c928400@student.dtu.dk (Peppe)
References: <slrn793pdn.n9.kpjas@apex.mount.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 429391620
X-Complaints-To: usenet@news.net.uni-c.dk
X-Trace: news.net.uni-c.dk 915628007 13792 (None) 130.225.71.226
Organization: Home of Peppe
User-Agent: slrn/0.9.5.4 (UNIX)
Reply-To: c928400@student.dtu.dk
Newsgroups: news.software.readers