Project

General

Profile

After some time or days archived messages are automatically deleted

Vinoth Rajendran
Added about 4 years ago

We are using Tigase 5.2.3 and my config file is,

--comp-class-1 = tigase.muc.MUCComponent
--comp-class-6 = tigase.muc.MUCComponent
--comp-class-5 = tigase.muc.MUCComponent
--virt-hosts = 192.168.1.94
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=root
--user-db = mysql
--admins = admin@192.168.1.94
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-all
--comp-name-2 = pubsub
--comp-name-6 = conference
--comp-name-5 = channel
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136

# To save group chat message. 
conference/default_room_config/conference#roomconfig_persistentroom=true
muc/default_room_config/muc#roomconfig_persistentroom=true
channel/default_room_config/channel#roomconfig_persistentroom=true

--debug = server, archive
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent

# To Enabling typing notification
conference/muc-allow-chat-states[B]=true
conference/message-filter-enabled[B]=false

muc/muc-allow-chat-states[B]=true
#muc/message-filter-enabled[B]=false

message-archive/archive-repo-uri=jdbc:mysql://localhost/tigasedb?user=root&password=root

sess-man/plugins-conf/message-archive-xep-0136/required-store-method=message
sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@192.168.1.94

Is there any way to keep having whole history?


Replies (2)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 4 years ago

As far as I know we do not have any code which deletes old message from archive after some time. Maybe you have some kind of a cron job cleaning up database?

Andrzej, Wojtek, are you aware of any code in Tigase which would remove messages from chat history?

Bartek, are you aware of a code in MUC which deletes old MUC chats?

Added by Wojciech Kapcia TigaseTeam about 4 years ago

@Vinoth Rajendran

After some time or days archived messages are automatically deleted

Which messages? From message archive or MUC history? Nevertheless there aren't any mechanisms in Tigase that would automatically trim the history.

In case of MUC the only possibility is that you remove/delete the room, therefore associated history is deleted as well.

    (1-2/2)