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?
Right, I've had a play with the script, there are a few bugs (for example, if an emoticon was used in a display name, the script can't find email addresses).

I have changed how the output is laid out, this makes Pidgin display the log correctly, but sadly, due to my lack of Java knowledge, I don't know how to make the file name show the date of the conversation, rather than the date of conversion.

Here is the patch that needs to be applied to the Java source XP1 attached:

code:
--- Original.Main.java    2010-10-02 20:10:14.000000000 +0100
+++ Main.java    2010-10-03 12:18:12.084575152 +0100
@@ -253,7 +253,7 @@
         
         //File aFile = new File(fFileName);

-        strOutput += "<html><head><title>Conversation with " + strArrayParticipants[1][0] + " at " + dfYearMonthDayTime.format(dateSessionStart) + " on " + strArrayParticipants[0][0] + " (msn)</title></head><body><h3>Conversation with " + strArrayParticipants[1][0] + " at " + dfYearMonthDayTime.format(dateSessionStart) + " on " + strArrayParticipants[0][0] + " (msn)</h3>";
+        strOutput += "<html><head><title>Conversation with " + strArrayParticipants[1][1] + " at " + dfYearMonthDayTime.format(dateSessionStart) + " on " + strArrayParticipants[0][1] + " (msn)</title></head><body><h3>Conversation with " + strArrayParticipants[1][1] + " at " + dfYearMonthDayTime.format(dateSessionStart) + " on " + strArrayParticipants[0][1] + " (msn)</h3>" + "\n";

         if (alistContactTimestamp.size() == alistContactName.size() && alistContactTimestamp.size() == alistContactMessage.size()) // If contact timestamp, name, and message are all matching
         {
@@ -261,11 +261,11 @@
             {
                 if (strArrayParticipants[0][0].contains(alistContactName.get(i))) // local user
                 {
-                    strOutput += "<font color=\"#16569E\"><font size=\"2\">" + dfTimestamp.format(alistContactTimestamp.get(i)) + "</font> <b>" + alistContactName.get(i) + ":</b></font> <font sml=\"MSN\">" + alistContactMessage.get(i) + "</font><br/>";
+                    strOutput += "<font color=\"#16569E\"><font size=\"2\">(" + dfTimestamp.format(alistContactTimestamp.get(i)) + ")</font> <b>" + alistContactName.get(i) + ":</b></font> <font sml=\"MSN\">" + alistContactMessage.get(i) + "</font><br/>" + "\n";
                 }
                 else
                 {
-                    strOutput += "<font color=\"#A82F2F\"><font size=\"2\">" + dfTimestamp.format(alistContactTimestamp.get(i)) + "</font> <b>" + alistContactName.get(i) + ":</b></font> <font sml=\"MSN\"><span style=\"font-family: High Tower Text;\"><strong><span style=\"color: #ff0000;\">" + alistContactMessage.get(i) + "</span></strong></span></font><br/>";
+                    strOutput += "<font color=\"#A82F2F\"><font size=\"2\">(" + dfTimestamp.format(alistContactTimestamp.get(i)) + ")</font> <b>" + alistContactName.get(i) + ":</b></font> <font sml=\"MSN\"><span style=\"font-family: High Tower Text;\"><strong><span style=\"color: #ff0000;\">" + alistContactMessage.get(i) + "</span></strong></span></font><br/>" + "\n";
                 }
             }

@@ -535,10 +535,10 @@
     private static void writeTextFile(String strFilename, String strFileContent)
     {
         // Date and Time
-        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh.mm.ss aa");
+        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd.HHmmss");
         Date currentDateTime = new Date();

-        strFilename = "Table " + dateFormat.format(currentDateTime) + ".html";
+        strFilename = "" + dateFormat.format(currentDateTime) + ".html";

         Writer writerTextFile = null;


10-03-2010 11:20 AM
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