Re: [Exim] caseful test

Pàgina inicial
Delete this message
Reply to this message
Autor: Tor Slettnes
Data:  
A: David
CC: Exim Users
Assumpte: Re: [Exim] caseful test
On Mon, 2004-06-07 at 03:41, David wrote:
> Hi !!
>
> I'm trying to detect some case sensible local parts in rcpt acl
> but both $local_part and acl local_parts do the tests on a lowercase
> version of the rcpt to: ,
>
> RCPT TO: <Hostmaster@???>
> 12:37:12 28037 SMTP<< RCPT TO: <Hostmaster@???>
> 12:37:12 28037 using ACL "acl_check_rcpt"
> 12:37:12 28037 processing "deny"
> 12:37:12 28037 expanding: $local_part
> 12:37:12 28037    result: hostmaster
> 12:37:12 28037 expanding: (Hostmaster|Webmaster)
> 12:37:12 28037    result: (Hostmaster|Webmaster)
> 12:37:12 28037 condition: match {$local_part}{(Hostmaster|Webmaster)}
> 12:37:12 28037    result: false

>
> Is there any way to get the original case version of the rcpt to: ?


Why not:

     match {${lc:$local_part}}{(hostmaster|webmaster)}


-tor