Re: [EXIM] Filter problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Christian Dysthe
Date:  
À: Microwave Systems Eximlist Exploder
CC: Exim-users
Sujet: 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
>>
>> --
>> -----------------------------------
>> Regards,
>> Christian Dysthe
>> Email: cdysthe@???
>> http://www.bigfoot.com/~cdysthe
>> ICQ 3945810
>> Powered by Debian GNU/Linux
>> -----------------------------------
>>
>>
>>            "Things are more like they used to be than they are now."

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

One comment: The last "or" in my filter is wrong. the filter is actually
much longer so when I pasted it here I forgot to remove the last "or".
Having that in there would make the filter "crash", that is not my
problem. The problem is the way it works.
--
-----------------------------------
Regards,
Christian Dysthe
Email: cdysthe@???
http://www.bigfoot.com/~cdysthe
ICQ 3945810
Powered by Debian GNU/Linux
-----------------------------------


           "Things are more like they used to be than they are now."



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