On 12 April 2018 at 10:05, Ajay Kajla via Exim-users <[email protected]> wrote:
> Hi, > > We have following requirement any mail coming from [email protected] and subject > contains "SomeThing" to go to [email protected] With complete headers and > to > [email protected] without Cc and From headers. > > I tried following filter but it's removing headers for both > [email protected] > & [email protected]. > > ===== > > if ("$h_from:" contains "[email protected]" and "$header_subject:" contains > "SomeThing") > then > deliver "[email protected]" (should go to [email protected] With complete > headers ) > endif I can't help with the why headers are being removed for both. However my thought is that you might want to be a bit careful with "$h_from:" contains "[email protected]" as I'm pretty sure it will also match when $h_from is, say, "[email protected]" (because this also *contains* "[email protected]"). Mind, I might well be wrong as I've only used a system filter in one situation, and that was about 10 years ago! :-) Cheers, Mike B-) -- Systems Administrator & Change Manager IT Services, University of York, Heslington, York YO10 5DD, UK Tel: +44-(0)1904-323811 Web: www.york.ac.uk/it-services Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm -- ## 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/
