🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #71251

Re: [slrn] per-newsgroup settings?

#71251
From: Jens Wahnes
Date: Mon, 29 Jan 2001 20:00
39 lines
1982 bytes
Joseph Dickson wrote:

> I was wondering if anyone knew a way in SLRN to allow for per-newsgroup
> settings.. for example, there are some newsgroups that I want the 
> sort mode set to a chronological mode, and some that I want set to
> a threaded mode... is there a provision in SLRN to allow for this?

The README.macros file that comes with slrn has got an example on how
to solve this problem:

| define article_mode_hook ()
| {
|    variable sorting_method = 7;
|    variable author_display = 2;
|    variable signature_file = ".signature";
|
|    if (is_substr (current_newsgroup (), "binaries")
|        or is_substr (current_newsgroup (), "pictures"))
|      {
|         sorting_method = 3;
|         author_display = 0;
|      }
|
|    if (0 == strncmp (current_newsgroup (), "comp.", 5))
|      signature_file = ".nerd-signature";
|
|    set_integer_variable ("sorting_method", sorting_method);
|    set_integer_variable ("author_display", author_display);
|    set_string_variable ("signature", signature_file);
| }


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Technical Details
Message-ID: <slrn97biul.sn8.jewa@message-id.wahnes-world.de>
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!news-fra.pop.de!schlund.de!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!wahnes-world.de!jewa
References: <slrn9791of.2f0.jdickson@gw.local.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn97biul.sn8.jewa@message-id.wahnes-world.de>
Subject: Re: [slrn] per-newsgroup settings?
Date: Mon, 29 Jan 2001 20:00:21 +0000
From: Jens Wahnes <jewa@gmx.net>
References: <slrn9791of.2f0.jdickson@gw.local.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!news-fra.pop.de!schlund.de!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!wahnes-world.de!jewa
Newsgroups: news.software.readers
Organization: Wahnes World
Lines: 38
NNTP-Posting-Host: meise098.wohnheim.uni-kl.de
X-NNTP-Posting-Host: localhost
Mail-Copies-To: nobody
User-Agent: slrn/0.9.6.3 (Linux)