Autor: Marc Perkel Datum: To: exim-users Betreff: Re: [Exim] Need Exim Filter Help - Willing to Pay - Smart Readfile
OK - I need the whole solution st that it works in a filter. It has to
be in the foorm:
if "expression" matches "your solution"
then
do something
endif
And it has to get the data with a readfile command. I want to just drop
it in and have it work. I got close to as far as you got. But when I put
it inside a filter it died because I couldn't figure out the multi-level
escaping.
To win the $100 it neads to actually work in a filter - not from the
command line or in and external script.
Matt Bernstein wrote:
>At 15:42 +0100 Matt Bernstein wrote:
>
>
>OK.. (in case you didn't get it)
>
>exim -be '${sg{${sg{${sg{String1|#String2||String3|}{\N(\|+)\N}{|}}}{\N\#(.*?)\|\N}{}}}{\N\|$\N}{}}'
>
>String1|String3
>
>What you need to learn is:
>
>1. Trying to write long expressions over more than one line can often make
> it more confusing as whitespace leaks in where you don't expect it
>
>2. \N saves the day in regular expressions
>
>
>