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

Top Page
Delete this message
Reply to this message
Author: Graeme Fowler
Date:  
To: exim users
Subject: Re: [exim] String Search - What am I doing wrong?
On 10 Oct 2019, at 03:40, Rob Gunther via Exim-users <exim-users@???> wrote:
> I am trying to conduct a search (condition) in an ACL.
>
> condition = ${if match {$spam_report:}{VIRUS}}

<snip>
> But I actually need to search for the string VIRUS(


You need the \N…\N construct, and (possibly, probably) a character class:

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}}

Graeme