Pidgin2Mail is a perl script to sync your Pidgin chat-logs with your email. See screenshots below.
(Each bold title-line in that email indicates a separate HTML log-file.)
The script merges logs into daily email digests. In this example it has merged ~31 000 log files down to ~14 000 emails.