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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Graeme Fowler
Data:  
Para: exim users
Asunto: 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