Re: [exim] Here's some useful ACLs for From header

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Perkel
Dátum:  
Címzett: Dean Brooks
CC: exim-users
Tárgy: Re: [exim] Here's some useful ACLs for From header


Dean Brooks wrote:
> On Wed, Jul 04, 2007 at 07:56:20AM -0700, Marc Perkel wrote:
>
>
>> Here's what should be some useful ACLs to break down elements of the
>> From header into the name part, email part, and domain part.
>>
>> I'm planning to post these on the Wiki as examples. Perhaps someone
>> would check and optimize the regex befor I post it. I'm not the best at
>> regex.
>>
>
> Not sure I understand the difference between what you wrote and
> the results of this:
>
> warn set acl_c_from_email_part = ${address:$h_From:}
> warn set_acl_c_from_domain_part = ${domain:${address:$h_From:}}
>
> Dont think there's an easy way to pull the name out of the address
> using Exim's built-ins, but not sure what that would be useful for
> anyway.
>
>
>


You're right! Does ${address:$h_From:} convert to lower case? I mostly
wrote this code to first extract the name part and go carried away.