Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: Porting ICQ 6 logs to Pidgin.

  1. #1
    Purpur NNTP User

    Default Porting ICQ 6 logs to Pidgin.


    Heyho! ^^

    Do you guys know if and how it is possible to import the ICQ 6 logs to
    Pidgin?
    Maybe through converting them?


    P.


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  2. #2
    Purpur NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    POSSIBLE? AND...HOW?
    *
    C'mon guys... are you dead?*

    ~~
    P.


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  3. #3
    yu210148 NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Assuming that both are text files--don't have an ICQ installation to
    know for sure but I'd be surprised if Pidgins weren't--it should be
    possible to convert them with something wipped up in sed and or awk.


    --
    yu210148
    ------------------------------------------------------------------------
    yu210148's Profile: http://forums.opensuse.org/member.php?userid=19157
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  4. #4
    Purpur NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Thanks. Further instructions are appreciated.

    P.


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  5. #5
    yu210148 NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Well, the first thing is to determine the file format of the target
    (Pidgin) and how it differs from the file format of the original (ICQ).


    Say for example the pidgin format was:

    name, connect_time, text
    name2, connect_time2, text2
    name3, connect_time3, text3
    etc....

    and the ICQ format was:

    connect_time, text, name
    connect_time2, text2, name2
    connect_time3, text3, name3
    etc...

    then one could use awk to convert the icq file into the pidgin format
    with something like (from the command line):

    awk { print $2, print $3, print $1 } icqlogfile.txt >
    pidginlogfile.txt


    with the numbers above standing for the position that they appear in
    the file.

    Now, it's likely that it's not going to be quite that straight forward.
    Say for example that there's a 'column' in the ICQ file that's not in
    the pidgin file. In that case a sed command could be used to strip that
    column out of the ICQ file.

    Sed relies on regex which can get quite harry to read/write but a
    simple example:

    Say I wanted to remove the name, name2, name3, etc column from my
    example above. It could be done in sed with something like:

    sed -f sedscript.sed icqfile.txt > strippedicqfile.txt

    where sedscript.sed contains:

    s/name*[0-9]//g

    the 's' above indicates to sed to substitute the regex pattern match
    following the slash with what follows the next slash--in this case
    nothing; and the 'g' at the end tells sed to do it globally (i.e., for
    each occourance and not just the first.)

    I found the O'Reily book on sed & awk really useful in figuring all
    this out. I think it was just called "Sed & Awk". Alternatively
    there's lots of web resources on the two programs but if you're really a
    masochist you can type 'man sed' and 'man awk' at the terminal.


    --
    yu210148
    ------------------------------------------------------------------------
    yu210148's Profile: http://forums.opensuse.org/member.php?userid=19157
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  6. #6
    Purpur NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Sounds really interesting. Don't you think there's a program out there I
    could use that makes it "quick 'n dirty"?

    Thanks for stying with me!
    P.


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  7. #7
    yu210148 NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    There may be but if it's not coming up in a google search for "ICQ
    Pidgin Log" or "ICQ Pidgin Log Convert" then it's likely if one exists
    whoever wrote it hasn't made it available. In which case writing your
    own may be the only way to go.

    At least until someone who knows a hell of a lot more about it comes
    along.


    --
    yu210148
    ------------------------------------------------------------------------
    yu210148's Profile: http://forums.opensuse.org/member.php?userid=19157
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  8. #8
    yu210148 NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Of course if either of those files are binary (i.e., not editable in a
    normal text editor) this won't work at all.


    --
    yu210148
    ------------------------------------------------------------------------
    yu210148's Profile: http://forums.opensuse.org/member.php?userid=19157
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  9. #9
    Purpur NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Now here comes the hint: ICQ logs ARE "binary". ICQ (whoa I litterally
    hate that name) saves messages to a file called "user*.mdb*".

    Mh...couldn't find a thang.


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


  10. #10
    Purpur NNTP User

    Default Re: Porting ICQ 6 logs to Pidgin.


    Whou... spacy. ^^
    *
    And then?*


    --
    Purpur
    ------------------------------------------------------------------------
    Purpur's Profile: http://forums.opensuse.org/member.php?userid=20078
    View this thread: http://forums.opensuse.org/showthread.php?t=405081


Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •