🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #146532

Re: [Dialog] Scoring for the "To" address

#146532
From: RickM
Date: Sat, 17 Apr 2004 12:14
39 lines
2317 bytes
On 17 Apr 2004 Antonio 'Gandalf' Favata
<gandalf@shadowfax.ithn.invalid> wrote: 

> RichGK skribis:
> 
>>> =+500 Header "To: joe@blablaryeyf.com"
>>> or even better
>>> =+500 Header
>>> {^(To|CC|X-(Apparently|Original)-To):.*joe@blablaryeyf\.com} 
>> Thanks!
> 
> You're welcome (and sorry for the late reply).
> 
>> Could you tell me what the second rule achieves?
> 
> Mainly three things:
> 1. It checks that the joe@ address is actually in the To (or
> similar) 
>    header, and not e.g. in the Subject header, as in
>||        Subject: To: joe@blablaryeyf.com

Actually it still doesn't work the way you might expect it to. If you
set up a filter for this group, like:
        =+500 Header {^from:.*dialog}
you will most likely [wrongly] get quite a few hits.

Since ".*" also covers CRLFs the filter spills over into other headers.

To avoid this you can use something like this:
        =+500 Header {^from:[^\n]*dialog}        
which checks that there isn't a new line between the two terms.

(BTW, I posted a very similar message to this when Dialog was first
released and I was evaluating it but I don't think that anyone latched
onto it.)

-- 
Rick
Technical Details
Message-ID: <c5r765$js1$1@newsg1.svr.pol.co.uk>
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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!news.theplanet.net!not-for-mail
References: <li8yu4k1b0ho.1bedkz4min4fd$.dlg@40tude.net> <12hk8fgzidoq7.dlg@shadowfax.ithn.invalid> <p4i98mhmyb8t$.1a9jypk2ukdu1.dlg@40tude.net> <1l561whq6ryx6$.dlg@shadowfax.ithn.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <c5r765$js1$1@newsg1.svr.pol.co.uk>
Subject: Re: [Dialog] Scoring for the "To" address
Date: Sat, 17 Apr 2004 13:14:35 +0100
From: RickM <msuser1@mail.com>
References: <li8yu4k1b0ho.1bedkz4min4fd$.dlg@40tude.net> <12hk8fgzidoq7.dlg@shadowfax.ithn.invalid> <p4i98mhmyb8t$.1a9jypk2ukdu1.dlg@40tude.net> <1l561whq6ryx6$.dlg@shadowfax.ithn.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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!news.theplanet.net!not-for-mail
Newsgroups: news.software.readers
Lines: 39
NNTP-Posting-Host: 217.135.177.86
X-Trace: newsg1.svr.pol.co.uk 1082204165 20353 217.135.177.86 (17 Apr 2004
NNTP-Posting-Date: 17 Apr 2004 12:16:05 GMT
X-Complaints-To: abuse@theplanet.net