mod_map

This is a prototype for an experimental archive summary API recently added in Prosody trunk.

Protocol

This is not a finished protocol, but a prototype meant for testing.

A basic query:

<iq id="lx7" type="get">
  <summary xmlns="xmpp:prosody.im/mod_map"/>
</iq>

Answered like:

<iq type="result" id="lx7">
  <summary xmlns="xmpp:prosody.im/mod_map">
    <item jid="juliet@capulet.lit">
      <count>3</count>
      <start>2019-02-25T15:48:00+0100</start>
      <end>2019-08-23T01:39:50+02:00</end>
      <body>O Romeo, Romeo! wherefore art thou Romeo?</body>
    </item>
  </summary>
</iq>

It can also take dataform and RSM parameters similar to a filtered MAM query.

E.g if the last message you received had an id 09af3-cc343-b409f then the following query would tell you who sent you messages since:

<iq id="lx8" type="get">
  <summary xmlns="xmpp:prosody.im/mod_map">
    <set xmlns="http://jabber.org/protocol/rsm">
      <max>10</max>
      <after>09af3-cc343-b409f</after>
    </set>
  </summary>
</iq>

Installation

With the plugin installer in Prosody 0.12 you can use:

sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_map

For earlier versions see the documentation for installing 3rd party modules