0

我正在使用最新的 Openfire 从 pubsub 服务接收消息。

<message xmlns="jabber:client" from="pubsub.macbook-air.local" to="test3@macbook-air.local/76925b59" id="test1dff_test3@macbook-air.local__a0BOh"><event xmlns="http://jabber.org/protocol/pubsub#event"><items node="fakenode11"><item id="XdXSqryf797e5bs"><body xmlns="http://jabber.org/protocol/pubsub">Here is yet another message</body></item></items></event><headers xmlns="http://jabber.org/protocol/shim"><header name="pubsub#subid">lrDeJ4lehr1q7BPLz3kbXBfHdbyNTto5FxepioO5</header></headers></message>

请注意,没有“发布者”属性。有什么方法可以找出谁将项目发布到 pubsub 提要?我绝对需要这些信息,因为实现类似于社区公告板,但无法弄清楚配置它的能力是否隐藏在某个地方,或者我是否因为此功能不存在而找不到它。

请参阅下面的规格...

谢谢!

7.1.2.3 项目发布者

如果配置为这样做,则服务可以在生成事件通知时包括项目的发布者。

示例 103. 服务通知订阅者

<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>
  <event xmlns='http://jabber.org/protocol/pubsub#event'>
    <items node='princely_musings'>
      <item id='ae890ac52d0df67ed7cfdf51b644e901'
            publisher='hamlet@denmark.lit'>
        [ ... ENTRY ... ]
      </item>
    </items>
  </event>
</message>

谢谢!

看起来我只会在自定义标签内将发件人发送到服务器,例如看看是否有效。

4

1 回答 1

1

我不认为 OpenFire 支持这个选项。似乎 ejabberd 用这个补丁支持它:https: //support.process-one.net/browse/EJAB-1347

于 2012-01-30T10:39:12.150 回答