On Wed, 4 Jun 1997, Marc Stuermer wrote:
> So I found this piece of rewriting rule:
>
> (.*)\!(.*)@my.domain.foo ${2}@${1} E
>
> and adapted it to my own needs.
>
> I thought, it wourd rewrite my envelope correctly, but I was wrong.
The problem is that you have not started the regular expression with ^.
Exim uses a leading ^ to recognize an item as a regular expression. So
if you use
^(.*)\!(.*)@my.domain.foo ${2}@${1} E
it will work. However, a somewhat better regular expression is
^([^!]+)!(.+)@my\.domain\.foo$ ${2}@${1} E
Philip
--
Philip Hazel University Computing Service,
ph10@??? New Museums Site, Cambridge CB2 3QG,
P.Hazel@??? England. Phone: +44 1223 334714