Article View: news.software.readers
Article #229231Re: 40tude Dialog: How to AND several regex together?
From: Larry Gates
Date: Tue, 20 Jan 2009 23:48
Date: Tue, 20 Jan 2009 23:48
39 lines
2257 bytes
2257 bytes
On Tue, 20 Jan 2009 18:22:55 -0500, Oliver Cromm wrote:
> * VanguardLH <V@nguard.LH> wrote:
>
>> I'd like something similar to:
>>
>> !ignore, markread Header {^Message-ID:.*<.*@domain>} AND {^From:.*name}
>>
>> (The above doesn't work.)
>
> Is this not in the Help file? It seems not. Bad!
>
> It should work like this:
>
> !ignore, markread Header {^Message-ID:.*<.*@domain>} +@Header:{^From:.*name}
>
> There may be restrictions about using colon and spaces within the +@
> part, in my scorefile, I always write it like above.
>
> A rule can have multiple +@ parts. You can also write exceptions as -@.
>
> But this makes more sense, when you are only scoring on standard XOVER
> headers:
>
> !ignore, markread Message-ID {<.*@domain>} +@From:{name}
>
> There is also a syntax that reads over line breaks, I can give examples
> in case you look for exotic Header contents.
I'd be curious to know which other scripts you have running. My favorite
one that I've got is a getthread facility that runs off a button.
It looks like perl has a && and an and . Maybe switching to && could do
something.
--
larry gates
The autodecrement is not magical.
-- Larry Wall in the perl man page
Technical Details
Message-ID:
<1f7k077ltamyj$.7oykv4tyfjjj$.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!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<gl5jgl$uvf$1@news.motzarella.org> <7ntkoxpitxoh.dlg@mid.crommatograph.info>Show Full Headers
Complete Article Headers
Message-ID: <1f7k077ltamyj$.7oykv4tyfjjj$.dlg@40tude.net> Subject: Re: 40tude Dialog: How to AND several regex together? Date: Tue, 20 Jan 2009 16:48:13 -0700 From: Larry Gates <larry@example.invalid> References: <gl5jgl$uvf$1@news.motzarella.org> <7ntkoxpitxoh.dlg@mid.crommatograph.info> 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!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 39 Reply-To: larry@example.invalid Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net S8dbzgflInUwPIhnxFVPOAXT31uS1Cd2pTBfdQDDKC9XsFmmo/ Cancel-Lock: sha1:SD/EX7Iq5eFP4fZWrlHBBuxi48w= User-Agent: 40tude_Dialog/2.0.15.1