🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #202083

Re: slrn -- selectively killfiling Google Groups

#202083
From: Peter J Ross
Date: Wed, 18 Jul 2007 18:39
68 lines
3449 bytes
In news.software.readers on Wed, 18 Jul 2007 21:07:11 +1000, Troy
Piggins <usenet-0707@piggo.com> wrote:

> * Peter J Ross is quoted & my replies are inline below :
>> In news.software.readers on Tue, 17 Jul 2007 20:32:52 +1000, Troy
>> Piggins <usenet-0707@piggo.com> wrote:
>>
>> [---=| Quote block shrinked by t-prot: 46 lines snipped |=---]
>>>   % problems
>>>   ~Subject: slrn
>>>   ~Subject: leafnode
>>>  }
>>>   {:
>>>   % whitelisted posters
>>>   ~From: whitelisted_poster_1
>>>   ~From: whitelisted_poster_2
>>>  }
>>>}
>>
>> You don't need that much nesting.
>>
>> {:
>>   ~Subject: slrn
>>   ~Subject: leafnode
>>   ~From: whitelisted_poster_1
>>   ~From: whitelisted_poster_2
>> }
>
> Thanks Peter.  I was using it to keep the subject headings and
> whitelisted posters separate.

It probably makes no difference in speed. But I'd use a couple of
lines of white space to separate them.

>>> Score: +1 % potentially highlight worthy GG posters
>>> ~Message-ID: .*googlegroups\.com>$
>>> References: ^<[0-9a-z.]+@googlegroups\.com>
>>
>> That won't work because the @ doesn't appear in that part of the
>> Message-ID. Try this:
>>
>> References: ^<[^>]+\.googlegroups\.com>
>
> Thanks again.  As always, you da man.

In return, as the macro guru perhaps you might like to play with this:

define show_raw ()
{
        variable state = get_header_flags ();
        set_input_string ("/tmp/slrn_raw");
        call ("save");
        system ("less /tmp/slrn_raw && rm /tmp/slrn_raw");
        set_header_flags (state);
        set_input_string ("");
}
definekey ("show_raw", "<F2>", "article");

tin allows you to view raw headers and bodies without any recoding,
but slrn doesn't. This is my primitive attempt to reproduce tin's
functionality. The variable "state" is used to prevent articles being
marked read.

It's horribly kludgy, and you could make it better. To test it, view
any article that has non-US-ASCCI characters in the displayed headers.

-- 
PJR :-)
Technical Details
Message-ID: <slrnf9snio.ep6.pjr@pjr.gotdns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
References: <682dncsHvrstFQrbnZ2dnUVZ_tfinZ2d@giganews.com> <1yZli.7395$Od7.1971@newsread1.news.pas.earthlink.net> <Xns996DEAB58C09Bemteedee@194.177.96.26> <ajYmi.7796$rR.730@newsread2.news.pas.earthlink.net> <slrnf9oukk.3td.no.spam@thurston.blinkynet.net> <20070717201359@usenet.piggo.com> <slrnf9rrgi.d0l.pjr@pjr.gotdns.org> <20070718210600@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnf9snio.ep6.pjr@pjr.gotdns.org>
Subject: Re: slrn -- selectively killfiling Google Groups
Date: Wed, 18 Jul 2007 18:39:20 +0000
From: Peter J Ross <pjr@example.invalid>
References: <682dncsHvrstFQrbnZ2dnUVZ_tfinZ2d@giganews.com> <1yZli.7395$Od7.1971@newsread1.news.pas.earthlink.net> <Xns996DEAB58C09Bemteedee@194.177.96.26> <ajYmi.7796$rR.730@newsread2.news.pas.earthlink.net> <slrnf9oukk.3td.no.spam@thurston.blinkynet.net> <20070717201359@usenet.piggo.com> <slrnf9rrgi.d0l.pjr@pjr.gotdns.org> <20070718210600@usenet.piggo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: none
Reply-To: pjr.spam@gmail.com
User-Agent: slrn/0.9.8.1pl2 (Debian)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 68
NNTP-Posting-Date: 18 Jul 2007 13:39:20 CDT
X-Trace: DXC=5S[a^7?\Q; 0WQ:A;
 LOKHX>]AGWjF5PjP9465Ue@WB_5?XEmDTk7MQ8826Z<EbT:a\5lV3mi\haFg8nKNSiQ2:B?>HF2\n_CN=48
X-Original-Bytes: 3138