Re: [Exim] caseful test

Góra strony
Delete this message
Reply to this message
Autor: Edgar Lovecraft
Data:  
Dla: Exim User's Mailing List
Temat: Re: [Exim] caseful test
Tor Slettnes wrote:
>
> 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)}


because $local_part is tested as lowercase, and he needs/wants it to be
in the original case.

http://www.exim.org/exim-html-4.30/doc/html/spec_44.html#SECT44.17

I do wonder how setting 'caseful_local_part' to true would impact things
at this stage...

--

--EAL--