Article View: news.software.readers
Article #231502Re: [Dialog] Testing on From fails but Header (for From) works?
From: Rom
Date: Mon, 16 Mar 2009 06:12
Date: Mon, 16 Mar 2009 06:12
58 lines
2647 bytes
2647 bytes
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>
Posting a MID might help.
[...]
> 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
<http://www.regular-expressions.info/wordboundaries.html>
> became:
>
> !ignore Header {^From:.*\B<username\b}
Using a MID of a post or the regex (sans braces) you should find the
scoring where that worked in the <date>.log files in Dialog's logs
subdirectory. I think it's useful to look at the Scoring lines.
> 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? _____|
No. You can see what's tested by successfully scored lines in the
logs, or "Settings > Show status window" for the current session.
If the From header is as per your above example (obtained from the raw
message or Shift+Ctrl Settings menu > Selected group/article info:
From: "name" <username at userdomain>
then I'd guess what's tested/what the log would show
(and says the From field or Header near the far right):
""\"name\"" <username at userdomain>"
or perhaps this (" and spaces between <>):
""\"name\"" <"username "at userdomain>"
--
Rom
Technical Details
Message-ID:
<5b8qvrxprzzr.14o1bg9qhyzk4.dlg@40tude.net>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!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<gpjtmm$nmm$1@news.motzarella.org>Show Full Headers
Complete Article Headers
Message-ID: <5b8qvrxprzzr.14o1bg9qhyzk4.dlg@40tude.net> Subject: Re: [Dialog] Testing on From fails but Header (for From) works? Date: Mon, 16 Mar 2009 17:12:22 +1100 From: Rom <-@-.invalid> References: <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!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 58 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net bWi4/Q6Vg4e0iUYI9A8j4w12u4HYB2IOzcs25lf/8OPT2ttsHA Cancel-Lock: sha1:ihYhUdM3E3rUxsSJ45GvsJh3hNQ= User-Agent: 40tude_Dialog/2.0.15.41 Archive: no X-No-Archive: yes