Re: [Exim] rewrite rule and S flag

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Sergey Matveychuk
CC: exim-users
Assumpte: Re: [Exim] rewrite rule and S flag
On Mon, 17 Mar 2003, Sergey Matveychuk wrote:

> *@*     ${lookup{$0}lsearch{/usr/local/etc/exim/rewriting}{$value}}     S

>
> I'v got a message: rewrite rule has the S flag but is not a regular
> expression
>
> *@* is not regular expression?


Correct. *@* is not a regular expression. A rewrite rule with an S flag
must have a regular expression as its pattern. In Exim, regular
expressions are (mostly, and certainly here) recognized by an initial ^
character. The reason you have to use a regular expression with S is
that the text you are matching may not be a valid RFC 2821 address -
that's the whole point of the S flag, to allow you to patch up junk.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.