What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Any way to convert legacy (.txt) logs into something useful?

Any way to convert legacy (.txt) logs into something useful?
Author: Message:
ian_hawdon
Junior Member
**


Posts: 16
34 / Male / Flag
Joined: Jun 2010
O.P. RE: Any way to convert legacy (.txt) logs into something useful?
In theory, a script would run something like this:

code:
Search for the following string: "| Session Start:"

search for string for next occurrence of: ".--------------------------------------------------------------------."

if number of lines between these strings > 2 then ignore (as multi conversations will be much harder to convert)

else, detect your username from first line by searching for an email and store as $localuser

detect recipient username from second line by searching for an email and store as $recipientuser

convert date from "Session Start:" to the YYYY-MM-DD format and store as $sessiondate

search for first time stamp from the first message ( [HH:MM:SS] ) strip the brackets and store as $sessionstart

Print the following into an html file

<html><head><title>Conversation with $recepientuser at $sessiondate $sessionstart on $localuser (msn)</title></head><body><h3>Conversation with $recepientuser at $sessiondate $sessionstart on $localuser (msn)</h3>

Next, identify all unique screen names (aliases) from each line of the conversation and ask which username it refers to (as the text logs dont make it clear)

Then identify status messages ("user has changed their name to" or "user has gone offline") by looking for messages starting with a *

Format all local user messages with the following HTML:

<font color="#16569E"><font size="2">(TIMESTAMP)</font> <b>SCREEN NAME (TRUNCATED):</b></font> <font sml="MSN">CONVERSATION TEXT</font><br/>

Format all recipient messages with the following HTML:

<font color="#A82F2F"><font size="2">(TIMESTAMP)</font> <b>SCREEN NAME (TRUNCATED):</b></font> <font sml="MSN"><span style='font-family: High Tower Text; '><strong><span style='color: #ff0000; '>CONVERSATION TEXT</span></strong></span></font><br/>

Format all status message with the following HTML:

<font size="2">(TIMESTAMP)</font><b> SCREEN NAME (TRUNCATED). STATUS.</b><br/>

close the file with:

</body></html>

then save the file with the following date format: $recipientuser/YYYY-MM-DD.HHMMSS.html

But I have no idea how to code it!

This post was edited on 08-05-2010 at 11:46 AM by ian_hawdon.
06-19-2010 04:32 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 12:42 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by matty on 06-18-2010 at 12:46 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 01:19 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by matty on 06-18-2010 at 01:24 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 01:42 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by Chrissy on 06-18-2010 at 02:00 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 02:05 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by djdannyp on 06-18-2010 at 02:08 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by Chrissy on 06-18-2010 at 02:08 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 02:14 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by Chrissy on 06-18-2010 at 02:17 PM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-18-2010 at 02:36 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 06-19-2010 at 04:32 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 08-01-2010 at 04:27 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by Phil_123 on 08-05-2010 at 06:57 AM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 08-05-2010 at 11:46 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 09-11-2010 at 05:42 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by Chrissy on 09-12-2010 at 03:02 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 10-03-2010 at 12:30 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 10-03-2010 at 10:22 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 10-03-2010 at 11:20 AM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 10-03-2010 at 12:57 PM
RE: RE: RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 10-03-2010 at 01:08 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 10-03-2010 at 03:47 PM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 10-03-2010 at 05:20 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by CookieRevised on 10-03-2010 at 05:26 PM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 10-05-2010 at 01:41 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 10-05-2010 at 10:53 PM
RE: Any way to convert legacy (.txt) logs into something useful? - by CookieRevised on 10-06-2010 at 09:06 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 10-07-2010 at 01:11 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by ian_hawdon on 12-02-2010 at 09:32 AM
RE: Any way to convert legacy (.txt) logs into something useful? - by JimmyJazz on 03-24-2011 at 03:06 PM
RE: RE: Any way to convert legacy (.txt) logs into something useful? - by XP1 on 03-29-2011 at 04:05 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On