Re: [exim] lsearch with spaces

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena
日付:  
To: exim-users
題目: 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.