[exim] Filter for Conditional Header Removal

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ajay Kajla
Dátum:  
Címzett: Exim Users
Tárgy: [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