openfire - 查询 openfire 消息存档

标签 openfire strophe archiving

我在玩 strophe 和 Openfire 3.7.1(带有用户服务和监控插件)。

我读过 http://xmpp.org/extensions/xep-0136.html (7.2 检索集合)
我可以检索存档的消息。我已经在我的 openfire 服务器上安装了 monitoring.jar 插件并启用了归档。我已经读到我需要打开存档来查询存档,但是这个功能已经在监控插件中了。

引用监控插件自述文件:
“监控插件为 Openfire 添加了对聊天存档和服务器统计的支持。它支持生成各种服务器统计报告,以及管理、查看和报告聊天日志。”

我可以在监控 GUI 中看到存档的消息,但我想在我使用 strophe.js 库制作的客户端中检索它。我不知道该怎么做。
在 XEP-0136 示例中,他们创建了这样的 IQ:

<iq type='get' xmlns='jabber:client'><retrieve xmlns='urn:xmpp:archive' with='test@localhost'>set</retrieve></iq> { nodeTree=iq, node=retrieve}

然而,openfire 似乎没有回复。我不确定我是否应该使用开放存档插件,因为如果我检查我的监控选项卡,文件已经在那里了。此外,大多数关于开放存档的帖子都是 2 年前的,所以我不确定它是否仍然受支持。请指教。

此致,

史蒂文森李

最佳答案

应该是这样的

<iq type='get' id='juliet1'>
  <list xmlns='urn:xmpp:archive'
        with='juliet@capulet.com/chamber'>
  </list>
</iq>


<iq type='get' id='page1'>
  <retrieve xmlns='urn:xmpp:archive'
            with='juliet@capulet.com/chamber>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max>100</max>
    </set>
  </retrieve>
</iq>

或者你做了别的什么

关于openfire - 查询 openfire 消息存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8225462/

相关文章:

xmpp - Openfire http绑定(bind)

Android Smack 4.2 : "XMPPError: feature-not-implemented - cancel" (Error)

javascript - 收到 Strope.js 通知(正在撰写)

数据库归档与基于时间段的表/字段

postgresql - 在 Postgresql 中归档旧数据

java - 在 java 中使用 Apache 保存目录结构

xmpp - 如何从 XMPP 获取旧消息(聊天记录)

xmpp - Bosh 使用 openfire 设置

javascript - 什么是 strophe 以及如何将它与 JQuery 一起使用?

openfire - strope 连接 openfire 错误