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

-- 
Randomly Generated Tagline:
No prisoner's dilemma here.  Over the long term, symbiosis is more
 useful than parasitism.  More fun, too.  Ask any mitochondria.
              -- Larry Wall in <[EMAIL PROTECTED]>

Attachment: pgpM5EeErpZy9.pgp
Description: PGP signature

Reply via email to