Converting Pidgin configs to BitlBee

In case you're migrating to BitlBee from Pidgin, Finch or Adium, there may be a useful tool in the utils subdirectory (some packages install it under /usr/share/doc/bitlbee) called convert_purple.py. If you can't find it, you can find a copy on http://bugs.bitlbee.org/bitlbee/browser/devel/utils/convert_purple.py. It reads libpurple configs and generates account add commands that you can paste in your &bitlbee, like this:

wilmer@ruby:~/src/bitlbee/devel$ utils/convert_purple.py -f ~/.purple/
To copy all your Pidgin accounts to BitlBee, just copy-paste the following
commands into your &bitlbee channel:

account add yahoo wiltux xxx
account add oscar 55707076 xxx
account add msn bitlbee@hotmail.com xxx

With a flag -x it will instead generate XML data that you can write to your account file in /var/lib/bitlbee.

The script doesn't currently read the aliases file, but maybe a future version will. Patches are welcome!