Project

General

Profile

Is there any way to enable message archiving by default?

Zhenxiang Liang
Added almost 5 years ago

Hi,

In tigase server, message archiving is closed by default for all user. The client need to send stanza to the server to enable message archiving.

Is there any way to enable message archiving by default?


Replies (6)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 5 years ago

Please loot at Advanced options section of following wiki page https://projects.tigase.org/projects/message-archiving/wiki/Configuration

Added by Zhenxiang Liang almost 5 years ago

Hi,

I have just update the init.properties file following the link, as follow:

--comp-class-1 = tigase.muc.MUCComponent

--virt-hosts = chat.carbonhire.com

--user-db-uri = jdbc:mysql://tigasedb.cbuqrrbjabbr.us-east-1.rds.amazonaws.com/tigasedb?user=tigase&password=tigase12

--user-db = mysql

--admins = admin@chat2.carbonhire.com

--comp-name-4 = message-archive

--comp-name-3 = proxy

config-type = --gen-config-def

--comp-name-2 = pubsub

--comp-name-1 = muc

--cluster-mode = true

--sm-plugins = +message-archive-xep-0136

sess-man/plugins-conf/message-archive-xep-0136/default-store-method=message

--debug = server, cluster

--comp-class-4 = tigase.archive.MessageArchiveComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

--comp-class-2 = tigase.pubsub.PubSubComponent

--monitoring=jmx:9050,http:9080,snmp:9060

Then I restart the server and registered an new account, but the new account was not in table tig_ma_jids table and the messages are not in tig_ma_msgs table.

Anything I did wrong?

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 5 years ago

You will see new entries in tig_ma_jids and tig_ma_msgs only if some messages will be logged for particular account, so registering a new account only would not put anything in there.

Added by Zhenxiang Liang almost 5 years ago

Thank for replying.

So according to XEP-0136, I had tried sending stanza from an account for auto archiving:

Then I can see entries in tig_ma_jids and tig_ma_msgs. So is there any way I can enable this for all users?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

Hm, apparently there is no such option yet to enable archiving for all users.

    (1-6/6)