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:[EMAIL PROTECTED]@[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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to