On Jun 25, 2004 at 10:26, Mark Wehberg <mark.wehberg(a)clearviewcatv.net> wrote:
Hello Everyone,
I am trying to change the URI within the ser.cfg using the replace
command. Has anyone done this before? What I need to do is strip some
of the info after the "@" and forward the message back out. So, I can't
necessarily use the rewritehostport (or rewritehost, rewriteport)
commands. Ay help would be greatly appreciated..
replace does not work on uris (it will ignore the first line).
To change the uri use subst_uri (textops modules).
Example:
subst_uri('/(.*)@foo.bar/\1_foo@bar.com/i');
(where the last i means case insensitive)
Andrei