Re: [exim] Filter for Conditional Header Removal

Pàgina inicial
Delete this message
Reply to this message
Autor: Mike Brudenell
Data:  
A: Exim Users
Assumpte: Re: [exim] Filter for Conditional Header Removal
On 12 April 2018 at 10:05, Ajay Kajla via Exim-users <exim-users@???>
wrote:

> 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



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 "abc@???"


as I'm pretty sure it will also match when $h_from is, say, "zabc@???"
(because this also *contains* "abc@???").

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