DeadAIM to GAIM log format?

  • Zeitgeist

    Zeitgeist - 2004-10-14


    I was hoping there was a perl or batch script or something that could convert DeadAIM logs to GAIM format.

    The formats are pretty similar if you use HTML logging, the only difference is a small part of the filename.

    DeadAIM stores logs in logs/username/screennameoftalkingto

    and Gaim is the same thing.

    However, with regards to filenames.

    DeadAIM is: 2004-03-07 [Sunday].htm
    so that is YEAR-MONTH-DAY [DOW].htm well GAIM has time insead of day of week.

    Anyway, long story short I was hoping someone has done this :)

    • Zeitgeist

      Zeitgeist - 2004-10-18


    • Eduardo Perez Ureta

      Try this in every directory:
      rename -v 's/ *\[.*\]/.000000/' *

    • J Coder

      J Coder - 2005-06-14

      Well, I was searching for this too, and didn't find anything, so I wrote this.  Maybe it will be helpful from someone else. My DeadAIM logs are from a while ago, so not sure if the logs are still the same.  you should only need standard unix utils. just run:

      deadaim2gaim <path to screenname> and it should convert all the screenname folders in it

      # deadaim2gaim: Convert DeadAIM logs to Gaim log format

      test -n "$1" && cd "$1"
      find -name "events.txt" -exec rm \{\} \;
      find -name "fmt" -exec rm \{\} \;
      for di in *; do
             sdi="$( echo "$di" | sed 's/ //g' | tr 'A-Z' 'a-z' )"
              if [ "$di" != "$sdi" ]; then
                      # remove annoying duplicates:
                      [ ! -d "$sdi" ] && (rm -rf "$sdi" &>/dev/null; mkdir "$sdi")
                      cp -r "$di"/* "$sdi" &>/dev/null
                      rm -r "$di" &>/dev/null

              for fi in "$sdi"/*; do
                      newfi="$( echo "$fi" | sed 's/^\(.*\) \[.*\]\.htm/\1\.000000\.html/g' )"
                      [ "$fi" != "$newfi" ] && mv "$fi" "$newfi"

    • David Grohmann

      David Grohmann - 2005-07-18

      I wrote a howto for converting deadaim logs to gaim logs

      unfortunately its not very leet, since I used gui tools only.

    • BaselineAce

      BaselineAce - 2005-07-23

      What about AIMutation logs?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks