comparison mod_mam.wiki @ 452:416ec6673229

mod_mam: Clarify some options
author Kim Alvefur <zash@zash.se>
date Sun, 27 Apr 2014 03:40:58 +0200
parents b2ebc4473c4c
children 1adeefc201d5
comparison
equal deleted inserted replaced
451:171663daa144 452:416ec6673229
25 -- This makes mod_mam use the sql2 storage backend (others will use internal) 25 -- This makes mod_mam use the sql2 storage backend (others will use internal)
26 archive2 = "sql2"; 26 archive2 = "sql2";
27 } 27 }
28 }}} 28 }}}
29 29
30 See [https://prosody.im/doc/storage Prosodys data storage documentation]
31 for more info on how to configure storage for different plugins.
32
30 = Configuration = 33 = Configuration =
31 34
32 The MAM protocol includes a method of changing preferecens regarding what 35 The MAM protocol includes a method of changing preferecens regarding what
33 messages should be stored. This allows users to enable or disable 36 messages should be stored. This allows users to enable or disable
34 archiving by default, and set rules for specific contacts. This module 37 archiving by default, and set rules for specific contacts. This module
35 will log no messages by default, for privacy concerns. If you decide to 38 will log no messages by default, for privacy concerns. If you decide to
36 change this, you should inform your users. 39 change this, you should inform your users.
37 40
38 {{{ 41 {{{
39 default_archive_policy = true or false or "roster"; 42 default_archive_policy = false -- other options are true or "roster";
40 }}} 43 }}}
41 44
42 This controls what messages are archived if the user hasn't set a 45 This controls what messages are archived if the user hasn't set a
43 matching rule, or another personal default. 46 matching rule, or another personal default.
44 47
45 * `false` means to store no messages. This is the default. 48 * `false` means to store no messages. This is the default.
46 * `"roster"` means to store messages to/from contacts in the users roster. 49 * `"roster"` means to store messages to/from contacts in the users roster.
47 * `true` means is to store all messages. 50 * `true` means is to store all messages.
48 51
49 {{{ 52 {{{
50 max_archive_query_results = 50; 53 max_archive_query_results = 20;
51 }}} 54 }}}
52 55
53 This is the largest number of messages that are allowed to be retrieved in one request. 56 This is the largest number of messages that are allowed to be retrieved in one request.
54 57
55 = Compatibility = 58 = Compatibility =