Returns the in-reply-to ID for the message.
Item |
Description |
Remarks |
---|---|---|
1 |
Message ID |
VARCHAR(128). You can obtain the message ID from ml_qa_createmessage or ml_qa_getmessage. |
The in-reply-to ID as VARCHAR(128).
A client can use the InReplyToID header field to link one message with another. A typical use is to link a response message with its request message.
The in-reply-to ID is the ID of the message that this message is replying to.
You can read this header after a message is received and until a rollback or commit occurs; after that you cannot read it.
In the following example, a message is received and the in-reply-to-id of the message is output to the database console:
begin declare @msgid varchar(128); declare @inreplytoid varchar(128); set @msgid = ml_qa_getmessage( 'myaddress' ); set @inreplytoid = ml_qa_getinreplytoid( @msgid ); message 'message is likely a reply to the message with id ' || @inreplytoid; commit; end