Article View: news.software.readers
Article #234786Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
From: ShadowTek
Date: Wed, 29 Jul 2009 05:40
Date: Wed, 29 Jul 2009 05:40
53 lines
3439 bytes
3439 bytes
On 2009-07-29, Troy Piggins <usenet-0907@piggo.com> wrote:
>
> Aah, gotcha. Think you need "turbo-plonk.sl":
>
> http://wannabehacker.com/src
> http://wannabehacker.com/src/turbo-plonk.sl
>
> I started looking at this but don't recall where I got with it.
> I think he's hard coded in who he wants to automatically killfile
> replies to. Maybe you can edit that part if it's only the one
> person.
>
> Whatchya reckon?
I've made a couple of small scripts in C, but it's been a while, and
although it's similar, I've never made anything with slang before.
I started by referencing the functions to understand exactly what was
being done, and then gradually working my way down the script.
Thusfar, I've needed to reference 3 function lists to understand what
all is going on:
slang functions:
http://www.jedsoft.org/slang/doc/pdf/slangfun.pdf
slrn intrinsic functions:
http://alcor.concordia.ca/topics/netnews/slrn/doc/macros.html
slrn interactive functions:
http://slrn.sourceforge.net/docs/slrn-manual-7.html
But now I've gotten to a part that involes complex string functions that
I'm unfamiliar with:
variable expression = "(string_match("+hdr+
",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
Can anyone explain what's going on here, step-by-step?
I don't know whether things are being used from slang, or slrn, or what.
For instance, where can I
find a reference to the functionallity that [^ ] provides?
It *is* mentioned in slrn's score file FAQ
http://slrn.sourceforge.net/docs/slrn-FAQ-4.html#ss4.19
but where's the actual documentation for this function?
I tried using a search engine, but there where no results. I think that
the use of those particular characters must have prevented a successful search.
Technical Details
Message-ID:
<slrnh6vnoo.8ce.ShadowTek@desktop.localdomain>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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mailReferences:
<guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> Subject: Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author? Date: Wed, 29 Jul 2009 05:40:14 +0000 From: ShadowTek <ShadowTek@invalid.invalid> References: <guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 53 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX18XjxJa+ZO4mIFKaJwbKM8hoZMtm1c6UVd1ltqo5hZeY9W4d428kuCz+Wnl/YFvvGYpjjONUhd+xOFiply1E2w6RXT7Hb7dXZtnHMJ4cAHK58bmWZGto7NvaZUM4M/B4iYskEi5EjoIlqHCxXoYEQtX X-Complaints-To: abuse@eternal-september.org NNTP-Posting-Date: Wed, 29 Jul 2009 05:40:14 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18MC+P1NDM4Uq5zXVrDhUXLMTA+pcfK8vFrX1OKQDtHBQ== Cancel-Lock: sha1:94J13xcnTrtVXVV+ZCchF1p+tK4= User-Agent: slrn/pre1.0.0-2 (Linux)