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

Góra strony
Delete this message
Reply to this message
Autor: Graeme Fowler
Data:  
Dla: exim users
Temat: 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