[exim] Filter for Conditional Header Removal

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Ajay Kajla
Ημερομηνία:  
Προς: Exim Users
Αντικείμενο: [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