Harry Putnam <[EMAIL PROTECTED]> writes:

> 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..

Nope... I jumped the gun here ... misreading the debug output.

How does the scoring work with this setup?

I've tried a number of combinations but I never see the meta rule get
hit. 

  header To_Newsguy To =~ /[EMAIL PROTECTED]/
  describe To newsguy (for a meta combination rule)
  score To_Newsguy 1

  header To_Newsguy_Reader To  =~ /[EMAIL PROTECTED]/
  describe To reader at newsguy (for a meta combination rule)
  score To_Newsguy_Reader 1

  meta To_Newsguy_Not_Reader __To_Newsguy && __To_Newsguy_Reader
  describe mesg to newsguy recipient but not reader
  score To_Newsguy_Not_Reader 6

Do the first 2 have to add  or can one give a score to the meta
itself like above?

I've tried setting 0 to the first 2 but not getting how this is
supposed to work...

Reply via email to