Hi,

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


I tried following filter but it's removing headers for both x...@mydomain.com
& a...@mydomain.com.

=====

if ("$h_from:" contains "a...@abc.com" and "$header_subject:" contains
"SomeThing")
then
deliver "x...@mydomain.com" (should go to x...@mydomain.com With complete
headers )
endif

if ("$h_from:" contains "a...@abc.com" and "$header_subject:" contains
"SomeThing")
then
headers remove Cc
headers remove From
deliver "a...@mydomain.com" (should go to a...@mydomain.com Without Cc and
>From headers )
endif
=====

Regards,

Ajay
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to