[jadmin] Tool to clean up jabberd2 queue (mysql storage).

Rafal Zawadzki bluszcz at jabberpl.org
Sun Aug 21 14:50:49 CDT 2005


Hi, after my fights with jabberd2 queue (patch for limiting offline messages 
doesn't work with dynamic allocation patch) i wrote little tool to clean up 
queue.

This tool is a simple python program, which need a bit of the configuration, 
edit jabberd2_mysql_vacuum.py ang change these values according to your 
settings:

dbhost="localhost"
dbuser="jabberd2"
database="jabberd2"
dbpassword="databasepassword"


You can also change types of messages and their lifetime (simple python 
dictionary object):


vacuumlist =    [
                        {"name":        "headline",     "days":"5"},
                        {"name":        "error",        "days":"20"},
                ]


This tool will be very helpful, in the case you are using any rss notifier...

Could be fetched from pyrss svn repository:
http://bluszcz.jabberpl.org/svn/pyrss/contrib/jabberd2_mysql_vacuum.py

cheers,

-- 
Rafal Zawadzki  [jid/mail: bluszcz at jabberpl.org]
  [homepage: http://jabberpl.org ]




More information about the JAdmin mailing list