mod_mam_archive

Introduction

Implementation of XEP-0136: Message Archiving for mod_mam.

Details

See mod_mam for details.

Usage

First configure mod_mam as specified in it’s wiki. Make sure it uses sql2 storage backend.

Then add “mam_archive” to your modules_enabled list:

    modules_enabled = {
        -- ...
        "mam_archive",
        -- ...
    }

Configuration

Because of the fact that XEP-0136 defines a ‘conversation’ concept not present in XEP-0313, we have to assume some periods of chat history as ‘conversations’.

Conversation interval defaults to one day, to provide for a convenient usage.

archive_conversation_interval = 86400; -- defined in seconds. One day by default

That is the only reason SQL database is required as well.

Compatibility

0.10 Works
0.9 Does not work
PostgreSQL Tested
MySQL Not tested
SQLite Tested

Installation

With the plugin installer in Prosody 0.12 you can use:

sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_mam_archive

For earlier versions see the documentation for installing 3rd party modules