Autor: Matt Bernstein Data: A: Marc Perkel CC: exim-users Assumpte: Re: [Exim] Need Exim Filter Help - Willing to Pay - Smart Readfile
At 07:07 -0700 Marc Perkel wrote:
>if "$h_received:" matches "${readfile{/etc/exim/blockhosts}{|}}"
>then
> Add some header
>endif
>
>But - where it fails is - if there is a newline at the end it returns a
>final | which kills it. Similarly - a blank line returns || in the
>middle which also kills it.
>
>It can't return (String1|String2||String3|)
use the sg{}{}{} operator or inline perl! And give ph10 the money :)