【发布时间】:2016-12-19 21:50:29
【问题描述】:
如何从 ejabberd 服务器 16.06 中部分或完全删除存档消息(我使用 conversejs 作为 ejaberd 客户端)。
【问题讨论】:
-
查看xmpp.org/extensions/xep-0136.html#manage-remove。您甚至可能必须编写自己的 js 方法来支持该功能,
如何从 ejabberd 服务器 16.06 中部分或完全删除存档消息(我使用 conversejs 作为 ejaberd 客户端)。
【问题讨论】:
删除单个collection。您需要以以下格式向 ejabberd 服务器发送请求。
<iq type='set' id='remove1'>
<remove xmlns='urn:xmpp:archive'
with='juliet@capulet.com/chamber'
start='1469-07-21T02:56:15Z'/>
</iq>
with: 'with' 属性可以指定 XMPP 实体的 JID
start: 可以指定 'start' 和 'end' 元素来指示日期范围
是的,可能有一个结束属性。你可以阅读所有关于详细信息here。也许您可能必须在客户端自己实现 api。
免责声明:我没有使用过 converse.js
【讨论】:
3.2 Message retention and deletion(仍处于试验阶段)。