Search Utility for Quassel 0.4

Posted on March 12th, 2009 by raoul and tagged , , , , .

Yesterday I was thinking about looking for something in my Quassel logs, and I didn't really feel like trying to scroll through the last 2 weeks' worth of backlog to find it. Also, at this stage Quassel unfortunately doesn't have a search feature either (Quassel devs, count that as a feature request Wink).

So I hauled out my latest trusty tool: Python.

Quassel stores it's data in an SQLite 3 database, so I opened the database and had a look at it's structure, and then wrote a Python script to search the database.

Therefore, I proudly present Quassel Search 0.1 for Quassel 0.4.

How to use it:

  • Download the script
  • Set it's executable bit:
    chmod a+x quassel-search.py
  • Run it with the help option to see it's options:
    ./quassel-search.py -h

Notes:

  • I have only tested this on Python 2.5. If you're using 2.4 you'll need to install the SQLite 3 module.
  • You probably want to download your database to a local machine before searching. Also, rather make a copy of the database before you download it, because otherwise you will most likely end up with a corrupted database.

Update

I've been told there *is* a search function in Quassel, but it only seems to search the current text in the current buffer, not the backlog. I could, once again, be wrong though.