Gordon Messmer wrote:
> matt wrote:
>> Gordon Messmer wrote:
>>> I can't replicate that behavior.  You're saying that the filter you 
>>> posted will match all of "[EMAIL PROTECTED]"s messages, and also any 
>>> message with "very important message" in the body?  
>>
>> The filter I posted matches either, I need the filter to match all.  
>> The filter I posted is my attempt at matching all but it does not 
>> work :(
>
> It works for me.  Can you post a message that matches, which 
> shouldn't, along with logs that show it being CCed to user2?
>
I will try and explain what I want again as I dont think I have done 
that very well. And I can also prove via the docs that the filter you 
tried (the one I posted) does not work.

- the mail filter is for user [EMAIL PROTECTED]
- when matt recieves any mail from [EMAIL PROTECTED], those mails should 
be checked for the phrase "very important message"
- if the phrase exists, then a copy of the message should be forwarded 
to [EMAIL PROTECTED]
- the message should also be delivered normally

-if a message comes through with only one of the above criteria, the 
message should not be forwarded to [EMAIL PROTECTED]

As I am learning about this by reading the docs, using && does not work 
because if expression1 is false, expresssion2 is not checked and if 
expression 1 is true, expression2 is checked and expression1 is not 
considered.

    /|expression1|/ && /|expression2|/

      

If /|expression1|/ evaluates to a logical false, the result of the && is 
/|expression1|/, otherwise it's /|expression2|/, which is evaluated.


A similar thing occurs using || except the logic is reversed.

so I need to understand how to make a filter that  checks for the phrase 
only after validating the email is from [EMAIL PROTECTED]

thanks

-Matt


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to