Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
设置此消息的回复 ID。
此回复 ID 与电子邮件系统跟踪回复所使用的回复 ID 类似。
通常将回复 ID 设置为此消息将回复的消息的消息 ID(如果有)。
客户端可使用 InReplyToID 标头字段,将一条消息与另一条消息相链接。典型应用是将响应消息与其请求消息相链接。
消息发送后就不能再更改此标头。
在下面的示例中,收到包含回复地址的消息时,创建和发送一条在回复 ID 中包含消息 ID 的回复消息:
begin declare @msgid varchar(128); declare @rmsgid varchar(128); declare @replyaddr varchar(128); set @msgid = ml_qa_getmessage( 'myaddress' ); set @replyaddr = ml_qa_getreplyaddress( @msgid ); if @replyaddr is not null then set @rmsgid = ml_qa_createmessage(); call ml_qa_settextcontent( @rmsgid, 'message received' ); call ml_qa_setinreplytoid( @rmsgid, @msgid ); call ml_qa_putmessage( @rmsgid, @replyaddr ); end if; commit; end