🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231488

[Dialog] Testing on From fails but Header (for From) works?

#231488
From: VanguardLH
Date: Sun, 15 Mar 2009 21:59
56 lines
3125 bytes
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.  Even when I run the filters manually, this poster's
article is not flagged.  I tried removing the first \b, as in:

  !ignore From {<username\b}

but that didn't help.  So I changed the filter to:

  !ignore Header {^From:.*\b<username\b}

but that doesn't work.  So I removed the first \b and used:

  !ignore Header {^From:.*<username\b}

and that worked.  Huh?  Doesn't testing on the From header also include
the checking on address field in that header, or does it only test on
the comment field (i.e., From: "comment" <address>)?  And why would
including the leading whitespace (which is there in the header) not
work?  It's there in the header.

- Testing on the From header doesn't work when checking against the
address field in that header?  I have to use Header for that?

- Why would including the leading whitespace character (which is there)
result in no match?


UPDATE:

While writing this and continuing to test, I realized that the leading
\b won't work because < is included in the character set used to check
for the word boundary transition.  I have to use \B, so my filter
became:

  !ignore Header {^From:.*\B<username\b}

and that worked.  So I'm down to why testing on From doesn't work
regarding not testing against the address field.  The following still
doesn't work:

  !ignore From {\B<username\b}

Does testing on the From field only test:

  From: "comment" <address>
        |_______|
on this ____|
                  |_______|
and not on this? _____|
Technical Details
Message-ID: <gpjtmm$nmm$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-mail

Show Full Headers
Complete Article Headers
Message-ID: <gpjtmm$nmm$1@news.motzarella.org>
Subject: [Dialog] Testing on From fails but Header (for From) works?
Date: Sun, 15 Mar 2009 16:59:00 -0500
From: VanguardLH <V@nguard.LH>
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: 56
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX1/KA647VzosrlKmLZK940DjhXIa+WzKXX0abnMKsHS5TwWIiuSTwUMmCq9xfzOwkWd3nm5lv73+jo4r5DSZRjAXmDK5Gj241TRjVWPfOK5mVg9NR5Tkdd7a0yAAekvu3FQ958AfYYWBOQ==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sun, 15 Mar 2009 21:58:46 +0000 (UTC)
Keywords: VanguardLH VLH811
X-Auth-Sender: U2FsdGVkX1+bJ8/vI/u2h00LesFVYUVjvq2Ki6dFMYWM+IS7kKUfdw==
Cancel-Lock: sha1:S6rTkzOlDh2F7ucYJOnyUxKdMko=
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