Re: [EXIM] Filter problem

Top Page
Delete this message
Reply to this message
Author: Christian Dysthe
Date:  
To: Microwave Systems Eximlist Exploder
CC: Exim-users
Subject: Re: [EXIM] Filter problem

On 17 May, Microwave Systems Eximlist Exploder wrote:
>
>
> I think you want "and"s in there instead of "or"s
>
> On Mon, 17 May 1999, Christian Dysthe wrote:
>
>>
>> Hi,
>>
>> I am trying to make a filter that save incoming mail to a given mail
>> file if one of several "To" or "Cc" fields are *not* present.
>>
>> I tried like this:
>>
>> if
>>    $header_To: does not contain "ohboy@???" or
>>    $header_To: does not contain "labour@???" or
>>    $header_Cc: does not contain "ohboy@???" or
>>    $header_Cc: does not contain "labour@???" or
>> then
>>   save /home/gsimmons/Mail/other_mail
>> endif

>>
>> What happens is that all mail that is not picked up by filters
>> preceding this one is saved to the folder
>> /home/gsimmons/Mail/other_mail.
>>
>> I have been looking and reading and can not find out how to make this
>> filter work only on mail that do no contain those addresses, but I can't
>> make it work.
>>
>> Any help would be greatly appreciated.
>>
>> TIA
>>

I want the filter to kick in if one of thos addresses either in the to
or the cc field is present. If I put "and's" in there wouldn't all of
the addresses in both fields have to be present to have the filter kick
in?

I want an email To: chef@??? Cc: labour@??? to be filtered. If
I use "and's" will such a mail get caught up by this filter?


--
*** Exim information can be found at http://www.exim.org/ ***