Article View: news.software.readers
Article #231493Re: [Dialog] Testing on From fails but Header (for From) works?
From: VanguardLH
Date: Mon, 16 Mar 2009 00:40
Date: Mon, 16 Mar 2009 00:40
32 lines
2434 bytes
2434 bytes
Paul B wrote:
> On Sun, 15 Mar 2009 16:59:00 -0500, VanguardLH wrote:
>
>> Say there is a post where the From header is:
>>
>> From: "name" <username at userdomain>
>>
>> I have a filter to flag those posts as ignored, which is:
>>
>> !ignore From {\b<username\b}
>>
>> Doesn't work.
>
> I think the <> brackets around "username" are interfering with
> the boundary flag.
>
> p.
That's why (under the Update section of my post) I mentioned changing
from \b to \B to detect the word boundary at the address field. So:
!ignore Header {^From:.*\B<username\b
works to find the username only in the address field of the From header.
However, I still don't see why:
!ignore From {\B<username\b}
doesn't work. The same regex that works when Header is used is the same
one used when From is used. So it appears to be a problem with the From
test not parsing into the address field of that entire header.
Technical Details
Message-ID:
<gpk759$km3$1@news.motzarella.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!news.motzarella.org!not-for-mailReferences:
<gpjtmm$nmm$1@news.motzarella.org> <1vpoz3fn9zyn4$.dlg@pbpublic.invalid>Show Full Headers
Complete Article Headers
Message-ID: <gpk759$km3$1@news.motzarella.org> Subject: Re: [Dialog] Testing on From fails but Header (for From) works? Date: Sun, 15 Mar 2009 19:40:32 -0500 From: VanguardLH <V@nguard.LH> References: <gpjtmm$nmm$1@news.motzarella.org> <1vpoz3fn9zyn4$.dlg@pbpublic.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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: 0.35MOA sniper at loose in Usenet Lines: 32 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX194YbqWyExMYaCK+wfgM/14BhIjbvjgbch4/KrtDVi1O/GU72KVvCTXxDypiMynNw5u4IGhmFvRdAQi6WFbnfdcl2tKJM252MF0NQ4LkYdZjO4U0ZKPy0QcWyn4vb1DBxkmo9e1y1DE6g== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Mon, 16 Mar 2009 00:40:09 +0000 (UTC) Keywords: VanguardLH VLH811 X-Auth-Sender: U2FsdGVkX1/78lmP6JWUpDqeGU5WJVqBtxGTGOUzCA5FcNUBVmenag== Cancel-Lock: sha1:J1ZHaUadDuZ4oltizD6wDPsqNd8= User-Agent: 40tude_Dialog/2.0.15.41 X-MOTD: It is wiser to remain silent and let others ponder your ignorance than to speak and remove all doubt