mod_mam/README.markdown
changeset 2021 d44ac0756c46
parent 2020 279885fd9728
child 2026 77b9c7e5fd63
equal deleted inserted replaced
2020:279885fd9728 2021:d44ac0756c46
    37 --------------
    37 --------------
    38 
    38 
    39   option                         type                    default
    39   option                         type                    default
    40   ------------------------------ ----------------------- ---------
    40   ------------------------------ ----------------------- ---------
    41   max\_archive\_query\_results   number                  `50`
    41   max\_archive\_query\_results   number                  `50`
    42   default\_archive\_policy       boolean or `"roster"`   `false`
    42   default\_archive\_policy       boolean or `"roster"`   `true`
    43   archive\_expires\_after        string                  `"1w"`
    43   archive\_expires\_after        string                  `"1w"`
    44 
    44 
    45 Storage backend
    45 Storage backend
    46 ---------------
    46 ---------------
    47 
    47 
    95 Message matching policy
    95 Message matching policy
    96 -----------------------
    96 -----------------------
    97 
    97 
    98 The MAM protocol includes a way for clients to control what messages
    98 The MAM protocol includes a way for clients to control what messages
    99 should be stored. This allows users to enable or disable archiving by
    99 should be stored. This allows users to enable or disable archiving by
   100 default or for specific contacts. This module will log no messages by
   100 default or for specific contacts.
   101 default, for privacy concerns. If you decide to change this, you should
       
   102 inform your users.
       
   103 
   101 
   104 ``` {.lua}
   102 ``` {.lua}
   105 default_archive_policy = false
   103 default_archive_policy = true
   106 ```
   104 ```
   107 
   105 
   108   `default_archive_policy =`   Meaning
   106   `default_archive_policy =`   Meaning
   109   ---------------------------- ------------------------------------------------------
   107   ---------------------------- ------------------------------------------------------
   110   `false`                      Store no messages. This is the default.
   108   `false`                      Store no messages. This is the default.