🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #216427

Re: [Leafnode] Filter for cigs?

#216427
From: Troy Piggins
Date: Tue, 05 Feb 2008 00:15
31 lines
2339 bytes
* andrew is quoted & my replies are inline below :
> Hi,
>
> I am setting up a Leafnode-2 filter for the subject cigarettes as
> follows:
>
> newsgroups = .*
> pattern = ^Subject:.*[Cc]igarettes
> action = kill
>
> but this primitive filter has a few shortcomings in that it does not
> filter:
>
> 1. CIGARETTES
> 2. cigarett
> 3. cigarette
>
> All of which I have seen in various groups. Any thoughts?

The pattern rule is a PCRE -> 'man pcre' and 'man pcrepattern' ;)
Off the top of my head:

     pattern = ^Subject:.*(?i)cigarette?s?

(untested)

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
* Currently using slrn pre0.9.9-82                           |___  | |/   |/  |
* Try it:                                                     ___| | |    |   |
$ svn co https://slrn.svn.sourceforge.net/svnroot/slrn/trunk slrn
Technical Details
Message-ID: <20080205100839@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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
References: <20080205092408@ilium.andrews-corner.org>

Show Full Headers
Complete Article Headers
Message-ID: <20080205100839@usenet.piggo.com>
Subject: Re: [Leafnode] Filter for cigs?
Date: Tue, 05 Feb 2008 10:15:47 +1000
From: Troy Piggins <usenet-0802@piggo.com>
References: <20080205092408@ilium.andrews-corner.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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 31
Reply-To: usenet-0802@piggo.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX19qBYHynb00HEfXJmV6f5Li1Wvblbkpxe0tpr3GZZJc8OavQMXPr5xMVjo60NCyRh75iSq9Ti4lTlesgWJ1yVxRC6AGJdt+vNYqY3iqRVMfnEjQYt0ab8KncceoQUKmAezhw5V+sBk8YQ==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Tue, 5 Feb 2008 00:16:43 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1+u1JglxM2fZ3G9483BfQTNRst7nxGAd6QMNhiE4am2dw==
X-NNTP-Proxy: Leafnode-2
 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/)
Cancel-Lock: sha1:vSLo0ZvlRXpDcDvHPJtVfHgnOUw=
User-Agent: slrn/pre0.9.9-82/rt (Linux)