Graeme Fowler via Exim-users <exim-users@exim.org> (Do 10 Okt 2019 08:45:51 
CEST):
> On 10 Oct 2019, at 03:40, Rob Gunther via Exim-users <exim-users@exim.org> 
> 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 ------------ -

Attachment: signature.asc
Description: PGP signature

-- 
## 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/

Reply via email to