ejabberd-2.0.1 - Disabling offline message storage

Hello All,

I have no need for offline message storage in my ejabberd setup due to the nature of the application it is being used in.

Does anyone know how to stop ejabberd (2.0.1) from storing offline messages?
If thats not possible is there any way I can automatically clear the offline messages, for example at midnight every day?

I have tried commenting out the mod_offline in the ejabberd.cfg
e.g. %%{mod_offline, []},
which has not worked, I used the jabber test suite to send 100 messages to an offline users and they were stored.

My setup is as follows:
ejabberd 2.0.1 running as a service on windows server 2003

Thanks in advance

Steve

Just a note: the author of

Just a note: the author of this thread also asked in the ejabberd mailing list. Maybe this discussion will be solved there.

disable offline message

Hi All,

1. can you please suggest how to avoid storing offline message.

2. my IM server crash after storing 100,000message how to avoid or how to increase the storage size of the IM Server

please help me as soon as possbile.

thanks,
hellomrsenthil

Configure mod_offline, delete old content

To make sure each user only stores 70 offline messages, in ejabberd.cfg replace the line:

 {mod_offline,  []},

with:

 {mod_offline,  [{user_max_messages, 70}]},

and restart ejabberd.

Or to disable offline message storage, delete that mod_offline in your ejabberd.cfg.

But your large database table is still there. You can try to delete the old content this way:

$ ejabberdctl debug
...

mnesia:clear_table(offline_msg).
{atomic,ok}

thanks

Works fine -hellomrsenthil

can i use ejabberdctl

can i use ejabberdctl delete_old_message day..........

But i think no message delete

Syndicate content