Re: Getting xfilter AND delivery to working

Philip Rhoades <[email protected]> Fri, 05 Feb 2016 07:38:52 +1100
Newsgroups gmane.mail.maildrop
Message-ID <6d42252613ead33638138272b64de038@localhost>
Bob,


On 2016-02-05 06:28, Bob Bernstein wrote:
> On Thu, 4 Feb 2016, Philip Rhoades wrote:
> 
>> if( /^[TC][[co]:.*tst/ )
>> {
>>     xfilter "/home/phil/bin/bash_internal_variables.sh > /home/phil/t"
>>     to $DEFAULT/.tst/
>> }
> 
> Could someone explain the syntax of the very first line above,
> to wit:
> 
> if( /^[TC][[co]:.*tst/ )
> 
> At first glance I thought I was looking at unbalanced brackets:
> 
> [TC][[co]
> 
> ...but from the discussion I seem to be alone in that opinion.
> 
> What is the purpose of this expression? I'm thinking it is
> looking to match some combination, with varying cases, of To and
> Cc.
> 
> Help. please.


Actually you have found a typo - which surprisingly didn't prevent the 
filter working  - I guess it had very infrequent use anyway.  One of the 
"[["s shouldn't be there and yes, it is a regex that matches either "To" 
or "Cc".

Regards,

Phil.
-- 
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  [email protected]

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140