Theo Van Dinter <[EMAIL PROTECTED]> writes:

> On Thu, Feb 05, 2004 at 08:47:41PM -0600, Harry Putnam wrote:
>> I'd like to run a sort of push pull regex in local.cf like this:
>> 
>> header To_Newsguy_Not_Reader To =~ /[EMAIL PROTECTED]/ && !/[EMAIL 
>> PROTECTED]/
>> 
>> But sa sees it as bad perl:
>> 
>> Use of uninitialized value in pattern match (m//) at
>> /etc/mail/spamassassin/local.cf, rule To_Newsguy_Not_Reader, line 1.
>> 
>> Is it possible to run this kind of dual regex?  If not then how might
>> I phrase it in a single regex.
>
> Not in the way you're doing it.  You have to make 2 seperate rules,
> then use a meta to put them together.  ie:
>
> header __To_Newsguy To =~ /[EMAIL PROTECTED]/
> header __To_Reader_Newsguy To =~ /[EMAIL PROTECTED]/
> meta To_Newsguy_Not_Reader __To_Newsguy && !__To_Reader_Newsguy

Cool, thanks.  That is handling the messages I was after..


Reply via email to