Re: [exim] lsearch with spaces

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: 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.