notification::email::parse_reply_address (private)

 notification::email::parse_reply_address -reply_address reply_address

Defined in packages/notifications/tcl/notification-email-procs.tcl

This takes a reply address, checks it for consistency, and returns a list of object_id and type_id

Switches:
-reply_address (required)

Testcases:
No testcase defined.
Source code:
        # The pattern to match
        set regexp_str "^[reply_address_prefix]-(\[0-9\]*)-(\[0-9\]*)\@"

        # Check the format and extract type_id and object_id at the same time
        if {![regexp $regexp_str $reply_address all object_id type_id]} {
            return ""
        }

        return [list $object_id $type_id]
XQL Not present:
PostgreSQL
Generic XQL file:
packages/notifications/tcl/notification-email-procs.xql

Oracle XQL file:
packages/notifications/tcl/notification-email-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: