Re: [exim] lsearch with spaces

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lena
Date:  
À: exim-users
Sujet: Re: [exim] lsearch with spaces
> From: Peter

> I have tried to find matching x-mailer lines by using lsearch from a
> text file, however since it often contains spaces it's never finding
> anything :(


> condition=${lookup{$h_X-Mailer:}lsearch{/etc/exim4/current-xmailer.txt}{yes}{no}}


condition=${lookup{${sg{$h_X-Mailer:}{\040}{_}}}lsearch{/etc/exim4/current-xmailer.txt}{yes}{no}}

and replace spaces in the file with underscores.