Skip to content

mod_privacy

Module Description

This module implements XEP-0016: Privacy Lists. This extension allows user to block IQs, messages, presences, or all, based on JIDs, subscription, and roster groups.

Options

modules.mod_privacy.backend

  • Syntax: string, one of "mnesia", "rdbms".
  • Default: "mnesia"
  • Example: backend = "mnesia"

Example Configuration

1
2
[modules.mod_privacy]
  backend = "rdbms"

Metrics

If you'd like to learn more about metrics in MongooseIM, please visit MongooseIM metrics page.

Backend action Description (when it gets incremented)
get_privacy_list A privacy list is retrieved from a DB.
get_list_names Names of user's privacy lists are fetched from a DB.
get_default_list A default privacy list for a user is fetched from a DB.
set_default_list A default list's name for a user is set in a DB.
forget_default_list A default list's name for a user is removed from a DB.
remove_privacy_list A privacy list is deleted from a DB.
replace_privacy_list A privacy list is updated (replaced) in a DB.