[exim] Filter for Conditional Header Removal

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ajay Kajla
Date:  
À: Exim Users
Sujet: [exim] Filter for Conditional Header Removal
Hi,

We have following requirement any mail coming from abc@??? and subject
contains "SomeThing" to go to xyz@??? With complete headers and to
abc@??? without Cc and From headers.


I tried following filter but it's removing headers for both xyz@???
& abc@???.

=====

if ("$h_from:" contains "abc@???" and "$header_subject:" contains
"SomeThing")
then
deliver "xyz@???" (should go to xyz@??? With complete
headers )
endif

if ("$h_from:" contains "abc@???" and "$header_subject:" contains
"SomeThing")
then
headers remove Cc
headers remove From
deliver "abc@???" (should go to abc@??? Without Cc and
>From headers )

endif
=====

Regards,

Ajay