ejabberd - Comments for "archive Issues" https://www.ejabberd.im/forum/25407/archive-issues en eli_momentos wrote: I am https://www.ejabberd.im/forum/25407/archive-issues#comment-66835 <div class="quote-msg"> <div class="quote-author"><em>eli_momentos</em> wrote:</div> <p>I am trying to work with archive messages with partial success.<br /> I'm working with ejabberd 15.07 </p></div> <p>Note that mod_mam got many improvements in the recent releases, including ejabberd 16.02.</p> <div class="quote-msg"> <div class="quote-author"><em>eli_momentos</em> wrote:</div> <p>1. When i send a message to MUC other connected users receive the messages.<br /> Users who are not logged-in receive the messages after the enter the room.<br /> When I do a reboot to service (ejabberdctl stop / ejabberdctl start) and make re-entry into the room, i do not get the messages from the history, although I see them in the table. </p></div> <p>Don't confuse mod_mam's archiving with mod_muc room history.<br /> See the description of that feature in the option history_size in:<br /> <a href="https://docs.ejabberd.im/admin/guide/configuration/#modmuc" title="https://docs.ejabberd.im/admin/guide/configuration/#modmuc">https://docs.ejabberd.im/admin/guide/configuration/#modmuc</a><br /> That history is kept only in RAM, not in disk, so it's lost when restarting the service.</p> <div class="quote-msg"> <div class="quote-author"><em>eli_momentos</em> wrote:</div> <p>2. When I try to get historical messages, i get an error 503:</p> <p> req:</p> <div class="codeblock"><code>&lt;Iq type = &#039;get&#039; id = &#039;sync1&#039;&gt;<br />  &lt;Modified xmlns = &quot;urn:xmpp:archive &#039;<br />            start = &#039;2013-03-01T01:14:47Z&#039;&gt;<br />    &lt;Set xmlns=&#039;http://jabber.org/protocol/rsm&#039;&gt;<br />      &lt;Max&gt;50&lt;/ Max&gt;<br />    &lt;/Set&gt;<br />  &lt;/ Modified&gt;<br />&lt;/ Iq&gt;</code></div> </div> <p>That query is not supported by ejabberd, see the examples:<br /> <noindex><a href="http://xmpp.org/extensions/xep-0313.html#query" title="http://xmpp.org/extensions/xep-0313.html#query" rel="nofollow" >http://xmpp.org/extensions/xep-0313.html#query</a></noindex></p> <div class="codeblock"><code>&lt;iq type=&#039;set&#039; id=&#039;juliet1&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;urn:xmpp:mam:1&#039; queryid=&#039;f27&#039; /&gt;<br />&lt;/iq&gt;</code></div> Sat, 19 Mar 2016 18:00:13 +0000 badlop comment 66835 at https://www.ejabberd.im