Re: [exim] lsearch with spaces

Etusivu
Poista viesti
Vastaa
Lähettäjä: Lena
Päiväys:  
Vastaanottaja: exim-users
Aihe: 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.