> 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.
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/