An HTML archive generator for chat rooms on an Openfire instant messaging server.
OfArchiver generates HTML archives of chat rooms on an Openfire instant messaging server.
Example usage is as follows:
from ofarchiver import OfArchiver ofa = OfArchiver() for room in ofa.get_rooms(): ofa.gen_archive(room)
A script called ofarchiver is also installed, which takes advantage of the multiprocessing Python module to speed up archive generation on installations with multiple chat rooms. It can serve as a cron job to generate archives at a given interval.
sudo pip install OfArchiver
sudo easy_install OfArchiver
git clone http://github.com/egnyte/ofarchiver cd ofarchiver python setup.py build sudo python setup.py install
The Monitoring Service Openfire plugin must be installed and configured.
- Log into the Openfire admin panel and select the Plugins tab.
- Install the Monitoring Service plugin.
- Select the Server tab, then the Archiving subtab.
- Under Archiving Settings, enable Archive group chats.
An ofarchiver.ini configuration file is included which must be copied to one of the following locations (listed in the order in which they are checked):
- The user’s home directory ($HOME)
It consists of the following sections (mandatory options have a **):
- basedir **
- The base directory in which to generate the HTML archive.
- confserver **
- The name of the Openfire conference server.
- db **
- The type of database used by Openfire (only mysql is currently supported).
- Whether to enable debugging statements.
- A file in which to log informational and/or debugging messages.
- The name of the organization running Openfire.
- A list of rooms for which to generate archives.
- hostname **
- The hostname of the MySQL server.
- username **
- A MySQL user, either Openfire’s or one created just for OfArchiver (only SELECT privileges on the ofMessageArchive table is needed).
- password **
- The password for the MySQL user above.
- database **
- The MySQL database used by Openfire.
- Whether to enable colors to more easily differentiate chat room members.
- A list of colors to choose from.
A web server with automatic directory index generation is required to view the HTML archive. Here is a sample configuration for Apache, with /var/www/html/ofarchive as the archive base directory:
<Directory /var/www/html/ofarchive> Options +Indexes IndexOptions FancyIndexing IndexOrderDefault Descending Date </Directory>
Adding authentication and encryption is highly recommended.
- Egnyte for allowing and encouraging me to release this software.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ofarchiver-0.43-py2.6.egg (12.7 kB)||File type Egg||Python version 2.6||Upload date||Hashes View|
|Filename, size ofarchiver-0.43-py2.7.egg (12.7 kB)||File type Egg||Python version 2.7||Upload date||Hashes View|
|Filename, size ofarchiver-0.43.tar.gz (12.6 kB)||File type Source||Python version None||Upload date||Hashes View|