Users wishing to set a custom limit of stored offline messages for barejid-barejid pairs needs to send the following XMPP stanza to the server:
<iq type="set" id="${random-id}"> <msgoffline xmlns="msgoffline" limit="${limit}"/> </iq>
Where:
. ${random-id}
is a random ID of the stanza (can be any string).
. ${limit}
is the integer value of the offline message limit. This can be set to false
to disable offline message limits.
In response, the server will send back an iq
stanza with a result type:
<iq type="result" id="${random-id}"> <msgoffline xmlns="msgoffline" limit="${limit}"/> </iq>
XMPP client sends the following to the server:
<iq type="set" id="aabba"> <msgoffline xmlns="msgoffline" limit="10"/> </iq>
Server response:
<iq type="result" id="aabba"> <msgoffline xmlns="msgoffline" limit="10"/> </iq>