๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #71245

Re: [slrn] per-newsgroup settings?

#71245
From: Renaud Colinet
Date: Mon, 29 Jan 2001 19:23
38 lines
2506 bytes
On Mon, 29 Jan 2001 18:27:05 GMT, Mark wrote:
>
>I was wondering almost the same thing. I'm trying to convert from Agent to
>a linux based news reader, and slrn is my current choice. The only stumbling
>block is I can't find any way to set things like From line and signature file
>on a per newsgroup basis. I like to have a different email address for each
>newsgroup so I know where replies (and spam) come from. Is this possible in
>slrn?
>
This kind of setting can be achieved with S-lang macros, using hooks.
Basically, hooks are functions that can be called when defined events
occur (entering/exiting a group, reading an article, posting an article,
a followup...).

For instance, my .slrnrc ends with the line:
interpret "hooks.sl"

to tell slrn to have a look at the file hooks.sl, which contains among
others :

define followup_hook ()
{
   if (is_substr (current_newsgroup, "fr.") or is_substr (current_newsgroup,"proxad."))
	set_string_variable ("followup_string", "Le %d, %r a ๏ฟฝcrit :");
   else set_string_variable ("followup_string", "On %d, %r wrote:");
   }

This simple code toggles my attribution between French and English
depending whether I'm posting to a French-speaking group or not.

A list of all available hooks can be found in the README.macros file in
the doc section of your slrn distribution, along with a lot of examples.

HTH

-- 
Renaud
Technical Details
Message-ID: <2rjd6.1623$Db5.2533497@nnrp6.proxad.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!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail
References: <slrn9791of.2f0.jdickson@gw.local.net> <slrn97bhjn.dij.lambic@belch.dummy.ca>

Show Full Headers
Complete Article Headers
Message-ID: <2rjd6.1623$Db5.2533497@nnrp6.proxad.net>
Subject: Re: [slrn] per-newsgroup settings?
Date: Mon, 29 Jan 2001 19:23:42 GMT
From: rcolinet@free.invalid (Renaud Colinet)
References: <slrn9791of.2f0.jdickson@gw.local.net> <slrn97bhjn.dij.lambic@belch.dummy.ca>
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!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Reply-To: rcolinet@free.fr
Mail-Copies-To: never
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.6.3 (Win32)
Lines: 37
NNTP-Posting-Host: 57.67.14.57
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp6.proxad.net 980796222 57.67.14.57 (Mon, 29 Jan 2001 20:23:42 CET)
NNTP-Posting-Date: Mon, 29 Jan 2001 20:23:42 CET
Organization: Guest of ProXad - France