Re: [Exim] regular expressions in the exim config

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: John Jetmore
Data:  
Para: Marco Herrn
CC: exim-users
Assunto: Re: [Exim] regular expressions in the exim config
On Mon, 23 Jun 2003, Marco Herrn wrote:

>    herrn@???.

>
> Now I need to exclude the domain part. I would use a pattern like this:
>
>    /@.*$/

>
> which would result in
>
>    @gmx.net

>
> Here I get the @. That would be ok, because I could use
> ${substr_1:} to extract the remaining part. But the real problem is, how
> do I get to the result of the matching? When using the match condition I
> would result in whether the strings match. True or false. Am I right?
>
> I want the result of the matching, not just whether they match. How is
> that possible?
>
> And, btw, if someone knows how to exclude the @ in the regex, I would be
> happy ;-)


I'm not really up to speed on regular expression usage in exim, but exim's
domain: expansion operator does what you want. So,
${domain:herrn@???} yields gmx.net.

--John