Configuration of automatic archiving of MUC messages

As mentioned above no additional configuration options than default configuration of Message Archiving component and plugin is needed to let user decide if he wants to enable or disable this feature (but it is disabled by default). In this case user to enable this feature needs to set settings of message archiving adding muc-save attribute to <default/> element of request with value set to true (or to false to disable this feature).

To configure state of this feature on installation level, it is required to set store-muc-messages property of message-archive SessionManager processor:

sess-man {
    message-archive {
        store-muc-messages = 'value'
    }
}

where value may be one of following values:

user
allows value to be set on domain level or by user if domain level setting allows that
true
enables feature for every user in every hosted domain (cannot be overridden by on domain or user level)
false
disables feature for every user in every hosted domain (cannot be overridden by on domain or user level)

To configure state of this feature on domain level, you need to execute vhost configuration command. In list of fields to configure domain, field to set this will be available with following values:

user
allows user to stat of this feature (if allowed on installation level)
true
enables feature for users of configured domain (user will not be able to disable)
false
disables feature for users of configured domain (user will not be able to disable)