Article View: news.software.readers
Article #22922840tude Dialog: How to AND several regex together?
From: VanguardLH
Date: Tue, 20 Jan 2009 22:34
Date: Tue, 20 Jan 2009 22:34
35 lines
3099 bytes
3099 bytes
I don't know if this is possible in 40tude Dialog. While a filter rule
can be defined to check on any header using regex, sometimes I need to
check on a combination of headers. For example, I may want to check the
message-ID along with the From headers because a troll or imposter is
always going through the same domain shown in the message-ID (but I
don't want to tag everyone using that NSP) and goes by the same name
(but is impostering someone else). I'd like something similar to:
!ignore, markread Header {^Message-ID:.*<.*@domain>} AND {^From:.*name}
(The above doesn't work.)
The domain would be whatever the imposter is using (which could be more
than one so I'd have to use "(domain1|domain2|...)" and the From has the
name they are impostering. Alternatively, if the imposter is using lots
of freebie NSPs, but since the original user is always using the same
NSP, I could trigger on From being the name and the Message-ID not being
the real user's domain, like:
!ignore,markread Header ~{^Message-ID:.*<.*@domain>} AND {^From:.*name}
I'm just showing example above since they aren't legal syntax in Dialog.
I'd like to figure out how to AND together multiple regular expressions
to get the effect of a Boolean expression, like:
ignoreimposter if (goodFromName AND wrongMsgIDdomain)
or
ignoreimposter if (goodFromName AND NOT(correctMsgIDdomain))
So far, my filters only have one regex to test against one header. I'm
wondering if it is possible to define a filter that tests on more than
one header. My experience has been that the imposter uses a different
NSP than the user they are impostering.
Technical Details
Message-ID:
<gl5jgl$uvf$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gl5jgl$uvf$1@news.motzarella.org> Subject: 40tude Dialog: How to AND several regex together? Date: Tue, 20 Jan 2009 16:34:39 -0600 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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.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: 35 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX19M7SqrueALmlAJwOLuLKjPaqwpqE2yj+23ztqE0YId1gDzjZRGe4MxTI1QAIAbP74E5T+VkeAzl897uH4Ml8HlkEV2Zq6MVH7pEEPdSXVOeIoGUCcS6Lw4hBOlLuQdl2XP1XO5hUAg4A== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Tue, 20 Jan 2009 22:33:57 +0000 (UTC) Keywords: VanguardLH VLH811 X-Auth-Sender: U2FsdGVkX1+1uFNvW383+FVHcBa7bqr/noKkg5uUV/tC1uUU4cVudw== Cancel-Lock: sha1:Mo6LUwgAz9h/8+OViTFd+lQtjW8= 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