[antispam-f] Re: Combining rules

  • From: Richard Porter <ricp@xxxxxxxxxxxxxxxx>
  • To: antispam@xxxxxxxxxxxxx
  • Date: Fri, 08 Jun 2007 16:47:21 +0100

On 8 Jun 2007 Jeremy Nicoll - freelists wrote:

> Richard Porter <ricp@xxxxxxxxxxxxxxxx> wrote:

>> Sorry I've misread your question. You said that you wanted to divert
>> mail _for_ a particular user. That implies that you want to process
>> outgoing mail, which you won't do with AntiSpam.

> Not for people who, when they read through a mailbox, are processing mails
> sent to many users all of whose mail would be in that mailbox.

Ah, right, I see what you mean. In that case the test has to be on
To: OR Cc: OR Envelope-to: and then an expression that matches the 
user address (typically *username@yourdomain*).

You don't need to OR the tests - they can just be performed 
sequentially. However the order is important because you might have a 
message to two or more users in your domain(s), or sent to one and 
copied to another. You have the same problem filtering in MPro/Pluto 
if you have multiple users.

I think you need to divert on Envelope-to: first, accept Envelope-to: 
other users and then divert on To: and Cc:. In the case of messages to 
two users in the same header and no Envelope-to: header then you just 
have to decide whether you want to divert both or accept both. I can't 
see a way around that problem, but in most cases Envelope-to: should 
do the job.

-- 
 _
|_|. _   Richard Porter               http://www.minijem.plus.com/
|\_||_                                mailto:ricp@xxxxxxxxxxxxxxxx

Other related posts: