🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231442

Re: [Pan]: Filtering non-english posts and freely available score files ?

#231442
From: Peter J Ross
Date: Sat, 14 Mar 2009 12:21
31 lines
2270 bytes
In news.software.readers on Fri, 13 Mar 2009 11:38:00 GMT, B Thomas
<dont@email.me> wrote:

> Hi,
>
> How would one write a score file rule to remove all posts, that contain 
> non-english characters in the subject line or body ?

	Subject: ^[:^ascii:]+$

This should match all posts whose Subjects don't contain at least one
US-ASCII character.

	Subject: ^[:^lower:]+$

This is a stricter rule, which should match all posts whose Subjects
don't contain at least one lower-case letter (a-z).

These rules should work in any newsreader that uses PCRE patterns. For
details, see "POSIX CHARACTER CLASSES" in the PCRE documentation ("man
3 pcrepattern").

As far as I'm aware, pan doesn't support filtering on the body of
messages.


-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Technical Details
Message-ID: <slrngrn8au.2id.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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!news.motzarella.org!motzarella.org!pjr.motzarella.org!not-for-mail
References: <sArul.160696$OT2.30449@newsfe29.ams2>

Show Full Headers
Complete Article Headers
Message-ID: <slrngrn8au.2id.pjr@pjr.gotdns.org>
Subject: Re: [Pan]: Filtering non-english posts and freely available score files ?
Date: Sat, 14 Mar 2009 12:21:50 +0000
From: Peter J Ross <pjr@example.invalid>
References: <sArul.160696$OT2.30449@newsfe29.ams2>
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.news-service.com!news.motzarella.org!motzarella.org!pjr.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 31
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX19QvIAoKCqAAErX5aSjVOZJpQqumhB7+7Oo2kx5lpNbf91SNeKZGuCfVEq561z062ZMUx0uQ6NPZUgJJhtJ+wsHaY5VABnIqrTEY9nfaTzsEhDj1kRnOkQROeot80uPsOc=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sat, 14 Mar 2009 12:33:07 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX18Y+fpiKcKcqPYA/5q5JmOr
Cancel-Lock: sha1:V33dO3t9vwL6g8sz+F/a7jam7F0=
User-Agent: slrn/pre1.0.0-2/mm (Linux)