mod_profile: Mark as Unmaintained
[prosody-modules.git] / mod_mam_muc / README.markdown
blobbaa354d4e5b6c8ade8bcde4ccf503a7024efa1ed
1 ---
2 labels:
3 - 'Stage-Alpha'
4 summary: 'XEP-0313: Message Archive Management for MUC'
5 ...
7 Introduction
8 ============
10 This module logs the conversation of chatrooms running on the server to
11 Prosody's archive storage. To access them you will need a client with
12 support for [XEP-0313: Message Archive Management] **version 0.5** or
13 a module such as [mod_http_muc_log].
15 Usage
16 =====
18 First copy the module to the prosody plugins directory.
20 Then add "mam\_muc" to your modules\_enabled list:
22 ``` {.lua}
23 Component "conference.example.org" "muc"
24 modules_enabled = {
25   "mam_muc",
27 ```
29 mod\_mam\_muc needs an archive-capable storage module, see
30 [Prosodys storage documentation][doc:storage] for how to select one.
31 The store is called "muc\_log".
33 Configuration
34 =============
36 Logging needs to be enabled for each room in the room configuration
37 dialog.
39 ``` {.lua}
40 muc_log_by_default = true; -- Enable logging by default (can be disabled in room config)
42 muc_log_all_rooms = false; -- set to true to force logging of all rooms
44 -- This is the largest number of messages that are allowed to be retrieved when joining a room.
45 max_history_messages = 20;
46 ```
48 Compatibility
49 =============
51   ------- -----------------------------------------------------------------------------
52   trunk   Use mod\_muc\_mam (included with Prosody)
53   0.11    Use mod\_muc\_mam (included with Prosody)
54   0.10    Works partially, only legacy XEP-0313 (version 0.5, namespace urn:xmpp:mam:1)
55   0.9     Does not work
56   0.8     Does not work
57   ------- -----------------------------------------------------------------------------
59 Prosody trunk (after April 2014) has a major rewrite of the MUC module,
60 allowing easier integration, but this module is not compatible with
61 that.