Import iChat logs into Adium?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
neilio
Harmless
Posts: 15
Joined: Sun Dec 05, 2004 4:51 am

Import iChat logs into Adium?

Post by neilio »

I've tried using the script included with SVN to import my iChat logs into Adium, but with no luck. I exported them into text form using Logorrhea and then pointed the ichat2adium.pl script at it, but it errors out.

I'm running OS X 10.4 and iChat 3.0. Here's the error I get:

Code: Select all

Use of uninitialized value in substitution (s///) at ./ichat2adium.pl line 108.
Bad record found at line 0.  Logged in AIM.iChatLogs/bad.
Use of uninitialized value in pattern match (m//) at ./ichat2adium.pl line 125.
Use of uninitialized value in subtraction (-) at ./ichat2adium.pl line 126.
Month '-1' out of range 0..11 at ./ichat2adium.pl line 126
Any ideas? It's obviously choking right at the get-go.

Neil
Slumming at the BeatnikPad
imnotatfault
Harmless
Posts: 2
Joined: Fri Aug 26, 2005 1:32 pm

Post by imnotatfault »

did you figure it out yet? i get the same error and cannot for the life of me figure out what's wrong.
miah
Harmless
Posts: 2
Joined: Wed Aug 31, 2005 6:44 am

Post by miah »

Replacing the lines:

Code: Select all

    ($chatname, $sender, $date, $time, $message) =
    /(.*?)\t(.*?)\t(.*?)\t(.*?)\t.*?\t(.*)\r/s;
with:

Code: Select all

    ($chatname, $sender, $date, $time, $message) =
    split(/\t/, $input[$i]);
seemed to help out for me. I don't know why the regex is broken, it looks fine to me. Be sure to use the --usernames flag, otherwise the output doens't make a lot of sense.
Post Reply