Article View: news.software.readers
Article #251160Re: slrn - filtering on non-ascii
From: Steve Crook
Date: Fri, 24 Aug 2012 18:11
Date: Fri, 24 Aug 2012 18:11
31 lines
1873 bytes
1873 bytes
On Fri, 24 Aug 2012 15:07:17 +0000 (UTC), Salvatore wrote in Message-Id: <k185b5$1oj3$1@yojimbo.hack>: > The regular expression library used doesn't have Unicode support, but > you can build a filter that looks for headers that only contain ASCII > characters, then negate that regex. > > Here's an example: > > --- begin News/Score --- > > [misc.test] > Score: -999 > ~From: ^[ -~]*$ > > --- end News/Score --- > > Let me know if that works. Hi Salvatore, I couldn't get it to work. My guess is that [ -~] isn't recognized as a valid range of chars. I don't think s-lang supports hexadecimal notation either so that approach is out. Doing ^[all_ascii_chars]+$ would probably work but that doesn't help with scoring on specific, non-ascii addresses. -- What shall we use To fill the empty spaces Where we used to talk?
Technical Details
Message-ID:
<slrnk3fgu5.dup.steve@snorky.mixmin.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.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<slrnk3efls.tt1.steve@snorky.mixmin.net> <k185b5$1oj3$1@yojimbo.hack>Show Full Headers
Complete Article Headers
Message-ID: <slrnk3fgu5.dup.steve@snorky.mixmin.net> Subject: Re: slrn - filtering on non-ascii Date: Fri, 24 Aug 2012 18:11:17 +0000 From: Steve Crook <steve@mixmin.net> References: <slrnk3efls.tt1.steve@snorky.mixmin.net> <k185b5$1oj3$1@yojimbo.hack> 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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail Newsgroups: news.software.readers Organization: Mixmin Injection-Date: Fri, 24 Aug 2012 18:11:17 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4"; logging-data="24776"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.0-40 (Linux) Lines: 30 X-Original-Bytes: 1577