🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #243596

Re: [Dialog 40tude] Filter doing more than I intended

#243596
From: Bill
Date: Fri, 03 Dec 2010 02:28
37 lines
3212 bytes
On Fri, 3 Dec 2010 00:29:46 +0000 (UTC), Mike Dee wrote:

> Not sure about Dialog's rules, but with regex in Xnews (and slrn and 
> Pan) I'd need to escape "Ed" with the word boundaries "\b" as in \bed\b 
> (case insensitive), otherwise it would also trap unwanted "Fred", 
> "Eddy" or ME@school.edu. etc; etc; too.
> 
> If you're not running this rule as a regex, perhaps it still requires 
> the word boundaries anyway.

In my brief tests:

"\bEd\b" failed to match "Ed" at all, or match any substrings with "ed"
in them.  The really interesting thing is that it also failed to match
the literal string "\bEd\b" .  That actually surprised me.  I thought it
would match if dialogs syntax worked the way I thougt.  The rule passed
dialog's "test" button in scoring and actions.  

I tried the same rule that expressly used a regular expression.
Using {\bEd\b} matched "Ed" correctly, and eliminated unwanted matching
with the cases with the sequence "ed" in a character string.  This
syntax matches the regex examples in dialog.   This rule would need a
tweek to not match something like "Ed the 8th" - but that's not that
hard.

I still don't understand what dialog's doing - but there seem to be
several workable options:  The easiest for filtering on the From header
seems to be to use the senders email address - as in:  From
"email@here.com".   The next would be to craft a  regex that fits the
circumstances.   (I wonder why dialogs "add Plonk filter" option doesn't
use the email?  Seems like the email would have a better chance of being
unique)

The lesson seems to be: avoid using "add plonk rule" in favor of
creating a more precise rule manually.
--
Email address is a Spam trap.
Technical Details
Message-ID: <aMOdnW57A69ByGXRnZ2dnUVZ_umdnZ2d@giganews.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.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <foqdndCtrYWJdGrRnZ2dnUVZ_rKdnZ2d@giganews.com> <Xns9E4374F2CD288emteedee@212.227.158.24>

Show Full Headers
Complete Article Headers
Message-ID: <aMOdnW57A69ByGXRnZ2dnUVZ_umdnZ2d@giganews.com>
Subject: Re: [Dialog 40tude] Filter doing more than I intended
Date: Thu, 2 Dec 2010 21:28:41 -0500
From: Bill <2k7508@gmail.com>
References: <foqdndCtrYWJdGrRnZ2dnUVZ_rKdnZ2d@giganews.com> <Xns9E4374F2CD288emteedee@212.227.158.24>
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.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 02 Dec 2010 20:28:44 -0600
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.84
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 37
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-uPtS5z+6eQkdIAV5Nj545rS/ez0NU386uu1MYGwslJVNf1Jave1H0AoQI7NKV/FPmuMpxJSmXtQZrdU!BE+L2cGvWTUkpWFtZYsjggrbIF+/Gdq0LuuudOCSM1YPY/IX40upEOrAzI1ptQ0ESFi9B4GqtS8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2889