Re: [exim] extract email from tls_peerdn ?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Phil Pennock
日付:  
To: exim-users
題目: Re: [exim] extract email from tls_peerdn ?
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=}}}

?