Re: [Exim] String expansion based on host list?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Marc Haber
CC: exim-users
題目: Re: [Exim] String expansion based on host list?
On Fri, 7 Nov 2003, Marc Haber wrote:

> I would like to perform string expansion based on a host list. For
> example:
>
> ${if eq{$lookup{listname}hostlist{$sender_host_address}{1}
>      {foo}{bar}}

>
> But there does not seem to be a lookup type for a host list. Did I
> miss something in the docs?


I don't really understand exactly what you want here. What do you mean
by "listname"? Is what you want perhaps this WishList item?

------------------------------------------------------------------------------

(73) 17-Jul-02 M Match a list from within a condition

e.g.  ${if matchdomain {$domain}{+domainlist} ...
      ${if matchhost {$sender_host_address}{1.2.3.4/10:2.3.4.5/16}...


Thought needed about how to handle host names. This may be too messy to specify
cleanly.
------------------------------------------------------------------------------


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book