Presently works with libpurple logs (Pidgin, Finch, possibly Adium, I don't know, I don't have a Mac). Uploads the logs one by one to your imap server specified by the file ~/.imbackup/config (look at config.example). imbackup is intended to run from cron.
So far this has only been tested on Ubuntu/Linux Mint, and against the dovecot IMAP server (www.dovecot.org/).
- BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/
- dateutil: http://labix.org/python-dateutil
sudo apt-get install python-beautifulsoup python-dateutil
Create ~/.imbackup/config with the following contents:
login: [imap username] password: [imap password] server: [address of imap host] port: [imap server's port] [optional, default 143, 993 if ssl = true] ssl: [true or false] [optional, default false] folder: [name of the folder on the server to store messages] [optional, default imbackup]
cd imbackup/bin ./imbackup.py
- test on other IMAP servers
- test on adium's logs