Auto-Archiving feature (#3)
Closed
Maciej Bursztynowski opened 1 decade ago

Hi,

I suggest giving administrator option to create accounts with archiving mode enabled. I think it could be two options:

  • global on/off

  • checkbox/flag when creating user from PSI/CLI

Andrzej Wójcik (Tigase) commented 1 decade ago

I would like to make sure I understand it correctly:

  1. global on/off - means global switch for server instance which would enable/disable message archiving

  2. checkbox while creating user - in default register dialog? (this could be tricky as message archiving is not part of server project but an addon) or in adhoc command? (this could be created custom command)

Maciej Bursztynowski commented 1 decade ago
  1. Yes, for example in init.properties (if it is possible) file:
message-archive/archive-auto = true/false
  1. Tricky, but probably possible. I don't know, but it could work like that:
tclmt.sh -u admin@example.com -p Pa$$w0rd add-user test@example.com testPassword *archive-enable*

and it checks if MA component is loaded. If yes, then create, if no - create user and display message, that MA comp is not loaded and archiving would not work.

I've noticed that for now there is option to disable archiving sending proper stanza to server. It would be great if admin could disable this possibility from init.properties.

Artur Hefczyc commented 1 decade ago

I can see a third option yet, to set archive to ON by default for a selected dns domain.

Andrzej Wójcik (Tigase) commented 1 decade ago

Yes, but options 2 and 3 (adhoc command and management by vhost) require to added attributes or fields related only to Message Archiving project to Tigase Server project, which I think should not be done by hardcoding if-else in code, but I think it would require some API to register "additional features" for those mechanisms.

Artur Hefczyc commented 1 decade ago

Good point. In some way, there is such an API, sort of. There is a field 'other' data in the VHost configuration record. Other is a text field which can store any information, so this could be a (key, value) pair, but to make it a useful feature some extra API should be added to operate on this 'other' fields so it could keep information for many components at the same time.

Andrzej Wójcik (Tigase) commented 1 decade ago

In a meanwhile we added support for setting requied minimal archiving level for messages per server instance. Setting required archiving level to at least body will enable archiving for all accounts hosted on this server.

Artur Hefczyc commented 1 decade ago

Could you please provide a link to configuration documentation or the other ticket describing details and close this ticket?

Andrzej Wójcik (Tigase) commented 1 decade ago

For more informations about newly added settings please see [[Configuration]]

issue 1 of 1
Type
Consulting
Priority
Normal
Assignee
RedmineID
1489
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-message-archiving#3
Please wait...
Page is in error, reload to recover