Re: [Exim] Re: Regex Address Rewriting at SMTP Time

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jonathan Vanasco
Date:  
À: exim-users
Sujet: Re: [Exim] Re: Regex Address Rewriting at SMTP Time
Great!

That answers a big question - I didn't remember that in the manual.

There doesn't seem to be any mention of the $ before the second \N
though, which raises another question. Am I missing something more
fundamental?

In any event, i'd like to suggest that in the documentation under
Section 30.7 the last example from section 30.9 (
\N^([^!]+)!(.*)@your.domain.example$\N $2@$1 ) be included as an
example. I'd be more than happy to provide any copy needed to put that
in place.


On Mon, Jun 02, 2003 at 05:21:10PM -0400, Jonathan Vanasco wrote:
>
> \N^(.*)@new.(.*)$\N $1@$2
>
> that works. (rewrite anything@??? =3D> anything@anywhere )
>
> But why?
>
> what's with this framing?
>
> \N ____________$\N
>
> i couldn't find anything in the manual about it, except for that in

an
> example at the end of section 30.

Quoted from chapter 11.1 of the doc :
=ABA portion of the string can specified as non-expandable by placing it
between two occurrences of \N. This is particularly useful for
protecting regular expressions, which often contain backslashes and
dollar signs. For example:

deny senders =3D \N^\d{8}[a-z]@some\.site\.example$\N

On encountering the first \N, the expander copies subsequent
characters without interpretation until it reaches the next \N or the
end of the string.=BB
--
Bernard Massot