Re: [exim] extract email from tls_peerdn ?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nicolas KOWALSKI
Date:  
À: exim-users
Sujet: Re: [exim] extract email from tls_peerdn ?
On Fri, Oct 28, 2011 at 12:16:34AM -0400, Phil Pennock wrote:
> On 2011-10-27 at 16:28 +0200, Nicolas KOWALSKI wrote:
> > /C=FR/ST=Ille-et-Vilaine/O=Home/OU=Computing/CN=Nicolas KOWALSKI/emailAddress=niko@???
>
> > ${extract{emailAddress}{${extract{-1}{/}{${tls_peerdn}}}}}
> >
> > Obviously, this will fail if the /-separated last field is not the
> > emailAddress.
>
> How about:
> ${filter {</ $tls_peerdn}{eqi{${substr_0_13:$item}}{emailAddress=}}}


Thanks for your reply.

I tried, but the 'emailAddress' string is not removed from the result.
Not sure why.

--
Nicolas