Pages: 1
RSS
How can I import emails saved as HTML files?, Messages as HTML files don't import properly.
 
Below is a sample email that was exported from an old email client to HTML format. What can I do to have it nicely import into The Bat? I tried the /IMPORT command but the none of the headers would populate, and the message body would only include the closing Body & HTML tags.

Thank you.

Code
<html>
<head>
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part1"><tr><td><b>Subject: </b>My Subject</td></tr>
<tr><td><b>From: </b>"John Doe" <jdoe@school.edu></td></tr>
<tr><td><b>Date: </b>Mon, 4 Oct 2004 13:21:38 -0400</td></tr></table>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part2"><tr><td><b>To: </b>"Jane Doe" <jdoe@school.com></td></tr></table><br>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; ">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=017042117-03102004><FONT face=Arial size=2>This is the email body.</FONT></SPAN></DIV>
</BODY></HTML>
</body>
</html>
 
Your problem is that this file isn't a valid message format, so TB  won't recognize it. I don't know whether you still have got the messages in the original format of your previous mail client, but maybe you can export them to a valid mail format.

__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
I no longer have the old mail client nor the original messages. I'm going to evaluate if it's possible to convert the files into MSG or EML format - preferably using a script or application of some sort.

Any suggestions on finding MSG and EML file structure information?
 
MSG and EML files have the same structure, plain text as defined in RFC2822. When you slect a messgae in TB and press F9 you'll how your current mesage appears in that format.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1