Page 1 of 1

Import iChat logs into Adium?

Posted: Thu May 12, 2005 11:01 pm
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

Posted: Fri Aug 26, 2005 1:33 pm
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.

Posted: Wed Aug 31, 2005 8:06 pm
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.