[Users] Using subst() of Textops module
Leonid Fainshtein
LFAIN at ipgear.net
Thu Jun 29 08:53:22 CEST 2006
Thank you, Bogdan.
I'm going to learn textops sources.
Leonid
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
Sent: Wednesday, June 28, 2006 8:25 PM
To: Leonid Fainshtein
Cc: users at 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:
>Hi,
>In the textops module doc
>(http://openser.org/docs/modules/1.0.x/textops.html#AEN124) there is an
>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 at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
More information about the sr-users
mailing list