> ram wrote: >> header __TO_CC_PHARMA_COMPANY ToCc =~ /[EMAIL PROTECTED]/i >> >> if( __TO_CC_PHARMA_COMPANY ) { ######## How to do this ???? >> body ALLOW_MEDS /viagra/ >> descibe this company recieves such legal mails , so give a negative >> score to offset the others >> score ALLOW_MEDS -2 >> } ######### end if >> > > To get the functionality you want, you'd use a meta rule instead.. > > header __TO_CC_PHARMA_COMPANY ToCc =~ /[EMAIL PROTECTED]/i > > body __HAS_VWORD /viagra/ > > meta ALLOW_MEDS ( __HAS_VWORD && __TO_CC_PHARMA_COMPANY) > score ALLOW_MEDS -2
Which is not actually what the OP is looking for, since in your example, the body rule would need to be evaluated at a certain cost. For efficiency reasons, the OP would like to evaluate some rules only if some condition is met. AFAICS, the OPs request is not possible out of the box. A workaround would be to set up two different instances of SA, each with it's own set of configurations etc (incl. Bayes and other data files!), and the MTA forwarding mails to one or the other SA instance depending on the RCPT TO domain. IMO this is a valid request, although the best method of implementation may need some evaluation. -- Matthias