view mod_mam.wiki @ 463:8331536b2615

added pages for mod_auth_any, mod_auth_joomla, mod_auth_phpbb3, mod_auth_wordpress and mod_saslname
author Kim Alvefur <zash@zash.se>
date Sun, 22 Jun 2014 15:52:39 +0200
parents 416ec6673229
children 1adeefc201d5
line wrap: on
line source

#summary XEP-0313: Message Archive Management (Really)
#labels Stage-Alpha

= Introduction =

Implementation of [http://xmpp.org/extensions/xep-0313.html XEP-0313: Message Archive Management]. Like [mod_archive] but much simpler.

= Details =

This module will archive all messages that match the simple rules setup by the
user, and allow the user to access this archive.

= Usage =

First copy the module to the prosody plugins directory.

Then add "mam" to your modules_enabled list:
{{{
modules_enabled = {
	-- ...
	"mam",
	-- ...
}
storage = {
	-- This makes mod_mam use the sql2 storage backend (others will use internal)
	archive2 = "sql2";
}
}}}

See [https://prosody.im/doc/storage Prosodys data storage documentation]
for more info on how to configure storage for different plugins.

= Configuration =

The MAM protocol includes a method of changing preferecens regarding what
messages should be stored.  This allows users to enable or disable
archiving by default, and set rules for specific contacts. This module
will log no messages by default, for privacy concerns.  If you decide to
change this, you should inform your users.

{{{
	default_archive_policy = false -- other options are true or "roster";
}}}

This controls what messages are archived if the user hasn't set a
matching rule, or another personal default.

 * `false` means to store no messages. This is the default.
 * `"roster"` means to store messages to/from contacts in the users roster.
 * `true` means is to store all messages.

{{{
	max_archive_query_results = 20;
}}}

This is the largest number of messages that are allowed to be retrieved in one request.

= Compatibility =
|| trunk || Works ||
|| 0.10 || Works ||
|| 0.9 || Does not work ||
|| 0.8 || Does not work ||