This nice little script parses Gaim or Pidgin logfiles (located at ~/.gaim/logs or ~/.purple/logs respectively) and puts the content into your mailbox on an IMAP server. I thought that this might be useful, especially since the subject is tagged with L if the chat contains an URL.
Unfortunately I faced some problems with my logfiles. Some date or time formats weren’t recognised, so I started to look at the parser Gaim::Log::Parser.pm to fix these problems.
I found out that I have the AM/PM time format for some entries and ISO date format for some others. I changed a couple of lines and now it works really fine for me :)