🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #221355

Re: XNEWS - filter out [OT]

#221355
From: Mike Dee
Date: Wed, 28 May 2008 03:02
36 lines
3833 bytes
On Wed, 28 May 2008 11:06:23 +1100, Cawshus wrote:

> Getting back to the question, will \bot\b unintentionally score subjects 
> with letters surrounding 'ot'. Example: would it score "pots and pans"?

No, the \b signifies a word boundary. \bot\b means that "ot" must be the
entire word, so it cannot match on for example, "other" or "both" or
"hippopotamus". It also ignores non-word characters that may adjoin ot,
such as "[" etc.

Where it can fail would be if somebody was to use underscores instead of
angle-brackets around OT. As in: "This topic is _OT_", as the underscore
would be seen as a word character and therefore would not match on "ot" in
this case.

I suppose that you could filter out possible underscores from this:

Score: -9999
  Subject: \bot\b|\b_ot_\b|\b_ot\b|\bot_\b

But this would not eliminate typos or compound words such as "This topic
is_OT".

Most of the time though you'll encounter "OT" within some kind of
parenthesis so you'll likely eliminate *most* posts marked "OT" using
\bot\b alone.

In explanation of the above rule, it uses pipes "|" if the 1st condition
"\bot\b" finds a match it will stop at that point and give the post a
score of -9999, if the 1st condition doesn't find a match, then it will
attempt the 2nd condition "\b_ot_\b", and so on until it either finds a
match or fails to and gives up until the next group refresh.

-- 
dee
Technical Details
Message-ID: <pan.2008.05.28.03.02.14.427327@emteedee.invalid>
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!news.albasani.net!not-for-mail
References: <Xns9AA85CD6942A8YaWontFindItHere@203.26.24.228> <Xns9AA8602A88E5FYaWontFindItHere@203.26.24.228> <Xns9AA86962D47C6YaWontFindItHere@203.26.24.228> <e05457645482b7939aef7f3edc064dcbnp@goofysplace.com> <Xns9AA7D3E7EAEBCmetadyataminvalid@MR-BLACK> <Xns9AA8EE4F322Cemteedee@193.201.53.67> <Xns9AA9391D740Femteedee@193.201.53.67> <20080525024514.37f5152c@prezmyra.remarqs.net> <pan.2008.05.27.02.30.57.809482@emteedee.invalid> <Xns9AAC70FC0D716YaWontFindItHere@203.26.24.228>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2008.05.28.03.02.14.427327@emteedee.invalid>
Subject: Re: XNEWS - filter out [OT]
Date: Wed, 28 May 2008 13:02:17 +1000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9AA85CD6942A8YaWontFindItHere@203.26.24.228> <Xns9AA8602A88E5FYaWontFindItHere@203.26.24.228> <Xns9AA86962D47C6YaWontFindItHere@203.26.24.228> <e05457645482b7939aef7f3edc064dcbnp@goofysplace.com> <Xns9AA7D3E7EAEBCmetadyataminvalid@MR-BLACK> <Xns9AA8EE4F322Cemteedee@193.201.53.67> <Xns9AA9391D740Femteedee@193.201.53.67> <20080525024514.37f5152c@prezmyra.remarqs.net> <pan.2008.05.27.02.30.57.809482@emteedee.invalid> <Xns9AAC70FC0D716YaWontFindItHere@203.26.24.228>
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!news.albasani.net!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 36
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 d328dZY2LCLQW0gufPEyROjiIx2LS8gL7eNxZzlWgmMgPmq6cWC4uK1m1K09lHX8kRMhhG8S+ja287TFQWaMVFvFZEr4KjF9c8l7VDRqO0mZ0gvLOvfjyeVpPQhnsZNw
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Wed, 28 May 2008 03:02:18 +0000 (UTC)
X-User-ID: ZZKef2ikRGe0zlGykxvwNvRjps+kuHhdnRmFQp8haEg=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAA1eFXgkmf71L/7
 7qX////6Pj40AAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1wMdBh4ZkpuYCAAAAPlJREFU
 eNqV0s2RwyAMBeAXQ+5xB4wq8AwNcHABuWz/rQRJ/AhssrtcPKPPegJjnIuF+vQrwC/QOidIK8AM
 6Qv4W0ADXADaeAO56RZijAeu4GIsMoHU47XDdfAWUlyAjHY6YwKXa+4KZYTsy0JyHFPFQjQdIxxo
 NESh1ccDJmeyzvsZX8D/CWBkAPkedV+LqBl6WPlYBdCOeFiAhdABBg4EvXiGLcj16QQivd8MiaHW
 N6JQARTaIXK9w8bdZQDxkiEKpP8uB00Q8JPXW+qahTPJS69nBk2SlgzS8DBJFrA/e5JkeSTe+WO3
 SdySgd/YGd4b9ZYBaIB/rw/aM8iUyl6QnQAAAABJRU5ErkJggg==
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
Cancel-Lock: sha1:kVg6U6Lb1wYvCDly8PoiHB5HCWM=
User-Agent: Pan 0.14.2.91 on Linux host, via Mac X-server
X-NNTP-Posting-Host: onRPftwp8l+1jMj7hmZ2LARL+iioxN9WV4ISIBgjC18=