Implementation of XEP-0313: Message Archive Management.
This module will archive all messages that match the simple rules setup by the user, and allow the user to access this archive.
First copy the module to the prosody plugins directory.
Then add “mam” to your modules_enabled list:
For example, to use mod_storage_sql (requires Prosody 0.10 or later):
If no archive-capable storage backend can be opened then an in-memory one will be used as fallback.
max_archive_query_results = 20;
This is the largest number of messages that are allowed to be retrieved in one request page. A query that does not fit in one page will include a reference to the next page, letting clients page through the result set. Setting large number is not recommended, as Prosody will be blocked while processing the request and will not be able to do anything else.
Messages in the archive will expire after some time, by default one week. This can be changed by setting
The format is an integer number of seconds or a multiple of a period given by a suffix that can be one of
m (month) or
y (year). No multiplier means seconds.
The MAM protocol includes a way for clients to control what messages should be stored. This allows users to enable or disable archiving by default or for specific contacts.
||Store no messages.|
||Store messages to/from contacts in the users roster.|
||Store all messages. This is the default.|
|trunk||Included with Prosody|
|0.10||Included with Prosody|
|0.8||Does not work|
Might be changed to “mam” at some point↩