Re: [exim] String Search - What am I doing wrong?

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] String Search - What am I doing wrong?
Graeme Fowler via Exim-users <exim-users@???> (Do 10 Okt 2019 08:45:51 CEST):
> On 10 Oct 2019, at 03:40, Rob Gunther via Exim-users <exim-users@???> wrote:
>
> https://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html
>
> So it would be somehting like:
>
> ${if match{$spam_report:}{\NVIRUS[(]\N}}


The character class isn't required there

    ${if match{$spam_report:}{\NVIRUS\(\N}}


or w/o \N

    ${if match{$spam_report:}{VIRUS\\(}}


Tested on the command line:

    $ exim -be '${if match{VIRUS(}{\NVIRUS\(\N}}
    true


Make sure, that you do not use the string "VIRUS" as a macro in your
configuration already.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -