Thank you, Bogdan.
I'm going to learn textops sources.
Leonid
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: Wednesday, June 28, 2006 8:25 PM
To: Leonid Fainshtein
Cc: users(a)openser.org
Subject: Re: [Users] Using subst() of Textops module
Hi Leonid,
that wasn't a mistake - "t" si short format to "To".
"\u" is a marker
for current RURI - is not a pseudo variable, it's something strictly
related to subst ops. Unfortunately this is not highly documented.
regards,
bogdan
Leonid Fainshtein wrote:
example that demonstrates how to replace URI in the
header "To" with
the message URI:
# replace the uri in to: with the message uri (just an example) if (
subst('/^To:(.*)sip:[^@]*@[a-zA-Z0-9.]+(.*)$/t:\1\u\2/ig') ) {};
After I've fixed a small mistake (instead of /t: I put /To:) it worked.
But I don't understand how does it work. It looks like "u" is
substituted by URI from R-URI but I didn't find such core variable.
Could somebody explain me?
Thank you in advance,
Leonid Fainshtein
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users