🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #230626

Re: Dialog: Can't get regex to work on From header for oddball case

#230626
From: VanguardLH
Date: Tue, 24 Feb 2009 21:23
49 lines
3845 bytes
Beauregard T. Shagnasty wrote:

> VanguardLH wrote:
> 
>> There has been a troll wandering around that I typically call "Terry's
>> Web Server" because that's what he started with (although I think he
>> started with just "t").  A Google Groups copy of his post today is at:
>> 
>> http://groups.google.com/group/24hoursupport.helpdesk/msg/5c592a116f78bd02
>> 
>> I have a scoring filter that has been working in the past but failed on
>> this post.  He always posts using a moniker of:
>> 
>> [something] Web Server <[variable]server[variable]>
> 
> The simple:   
> !markread From Web Server   or   !delete From Web Server
> seems to work quite well.

Alas that really isn't unique enough to identify just this troll's
posts.  That would, for example, tag on someone using "Web Server Guide"
which would NOT match on the troll's variation of his monikers.  I could
test that "Web Server" was at the end of the From header (before the
angle bracket delimiting the address field) so I can use:

!ignore From {\bWeb Server <.*>}
+@Header:{^Path:.*!news\.earthlink\.com\.POSTED!not-for-mail$}

This is close to what I had before but doesn't include any substring
that might be always available within the address field (inside the
angled brackets).  This modified filter only tags posts where "Web
Server is at the end of the name field and the poster is using
Earthlink.  I wanted to capture as much of the From header's value as
possible that this troll consistently uses in this header, like the
"server" substring that is always present in the address field at the
end or just 1 or 2 characters away from the closing angle bracket.

That the filter:

!ignore From {\bWeb Server <.+server.*>}
+@Header:{^Path:.*!news\.earthlink\.com\.POSTED!not-for-mail$}

doesn't work when scoring is applied (but DOES work in the program's own
regex tester) seems to indicate that Dialog is screwed up during that
actual *application* of its scoring filters - but this has only appeared
for the mentioned post because the address field's value was double
quoted in that post.  Maybe there is a parsing error when scoring
filters are applied due to the double-quoted address value but not when
using the regex tester.
Technical Details
Message-ID: <go1ofq$g6j$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!feeder1.news.weretis.net!weretis.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail
References: <go17uo$1j9$1@news.motzarella.org> <go1fp7$4j6$1@news.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <go1ofq$g6j$1@news.motzarella.org>
Subject: Re: Dialog: Can't get regex to work on From header for oddball case
Date: Tue, 24 Feb 2009 15:23:07 -0600
From: VanguardLH <V@nguard.LH>
References: <go17uo$1j9$1@news.motzarella.org> <go1fp7$4j6$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!feeder1.news.weretis.net!weretis.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: 0.35MOA sniper at loose in Usenet
Lines: 49
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX18YXZv7QE64fFMSuCA8+DgxzdJR6D7VhIhFlT49GxJ7/9DuWKL2A3Fi5dHa0+lmFjJvvGxpONiF4p9l0HEgbh8hb3QctLFQW3Vx/S51rYA+/fj8Vl1zKSD2pqNXi3JhUfSy2LFSaT50LA==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Tue, 24 Feb 2009 21:23:06 +0000 (UTC)
Keywords: VanguardLH VLH811
X-Antivirus-Status: Not-Tested
X-Auth-Sender: U2FsdGVkX19eYbJuzjEmkmn06P4pXfg/sDbXCiy2hPBKO/u6gCUImw==
X-Antivirus: avast! (VPS 090224-0, 02/24/2009), Outbound message
Cancel-Lock: sha1:DByTeTMF6tDS42uSbqEU8O19c+4=
User-Agent: 40tude_Dialog/2.0.15.1
X-MOTD: It is wiser to remain silent and let others ponder your ignorance than
 to speak and remove all doubt