wiki:JabberTracScript

Import Jabber-muc logs

Description

This is a Perl script that formats and imports into Trac wiki a series of Jabber-muc logs, organised by chatrooms. Jabber is an IM service based on XMPP and one of the key nodes on the XMPP network.

Bugs/Feature Requests

Existing bugs and feature requests for JabberTracScript are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

You can check out JabberTracScript from here using Subversion, or browse the source with Trac.

Installation and Configuration

On a working Trac environment install and enable the TicketBackLinksMacro. Then you will need a Jabber server with logging enabled, for chatrooms, configured to be ordered by subdirectories (dates). Jabber with jcr and muc is known to work ok.

You'll have to configure j2t (config done from inside the script) to fit your needs, consisting of Trac's main location, conference server address etc. Run touch /etc/j2t.cfg. Then launch "j2t -c chatroom tracname" for each chatroom you want.

You can make a cron to launch j2t (without arguments) each time you want it to be updated.

Warning: This should be done at most once a day, otherwise it will make too much noise on your timelines.

Recommendations

Now, you'll have logs uploaded to wiki and shown in tickets' description. I recommend using TracFineGrainedPermissions to block undesired traffic to the conversations.

Chatrooms will not be created automatically, so, if they don't exists, you will have to join to them. A workaround for automating this is having a gozerbot doing that for you.

I've also built a gozerplug for this: j2t.py. You'll have to modify it a bit, since it's ready to get config trough ssh, and that might not be what you want. Also, you'll have to configure that user to don't require passwords if you use ssh, because of certificates.

If you wan't you can configure your bot nick inside j2t (botnick variable) so its messages won't be shown. Also, commands are not saved (!whatever strings) into wiki.

Other

Check out my other gozerplugs: showticket and showrevision, for better integration with Trac: http://public.warp.es/trac-stuff/browser/tools/gozerplugs

I know there are gozerplugs already for Trac integration, but those are adapted for this system using j2t.cfg same way as j2t does, so it interact perfectly with them.

Recent Changes

5935 by XayOn on 2009-06-03 09:07:40
First upload
5934 by XayOn on 2009-06-03 09:02:53
New hack JabberTracScript, created by XayOn
(more)

Author/Contributors

Author: XayOn
Maintainer: David Francos Cuartero
Contributors:

Last modified 9 years ago Last modified on Nov 25, 2015, 9:03:52 AM