hey, ive got a problem with setting up message archiving, im running ejabberd 15.11, installed mod_mam_mnesia from ejabberd-contrib and it seems to be working - i can see the number of stored message go up in the web admin after sending a message, when i try service discovery, i get feature 'urn:xmpp:mam:0' in the results, but when i try to get the archiving preferences, i get feature not implemented, and i have no idea how to interpret this. does it mean i dont have message archiving enabled? is it not configured correctly? or am i just missing something completely else? also when i try to get archived messages for a specific user, i only get the count of messages, which is also higher than the number of all stored messages displayed in the web admin.
service discovery request:
<iq type="get" id="discoarchive" to="user@pc.local" from="user@pc.local/resource" xmlns="jabber:client">
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>
result:
<iq xmlns="jabber:client" from="user@pc.local" to="user@pc.local/resource" id="discoarchive" type="result">
<query xmlns="http://jabber.org/protocol/disco#info">
...
<feature var="urn:xmpp:mam:0"/>
...
</query>
</iq>
archive prefs request:
<iq type='get' id='mamprefs'>
<prefs xmlns='urn:xmpp:mam:0'/>
</iq>
result:
<iq xmlns="jabber:client" from="user@pc.local" to="user@pc.local/resource" id="mamprefs" type="error">
<prefs xmlns="urn:xmpp:mam:0"/>
<error code="501" type="cancel">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
archived messages request:
<iq type="set" id="getarchive99" xmlns="jabber:client">
<query xmlns="urn:xmpp:mam:0">
<set xmlns="http://jabber.org/protocol/rsm">
<max>1</max>
</set>
</query>
</iq>
result:
<message xmlns="jabber:client" from="user@pc.local" to="user@pc.local/resource" id="mG4n376Tq0r7">
<fin xmlns="urn:xmpp:mam:0">
<set xmlns="http://jabber.org/protocol/rsm">
<count>171</count>
</set>
</fin>
<no-copy xmlns="urn:xmpp:hints"/>
</message>
and heres my mam configuration from the web admin
mod_mam_mnesia: [{default_page_size, 25},
{max_page_size, 100},
{request_activates_archiving, false}]
Maybe mod_mam_mnesia doesn't
Maybe mod_mam_mnesia doesn't support the prefs feature you want? Try mod_mam, which is included in ejabberd releases since some months ago.