FileOutputStream fout = new FileOutputStream (output);
FileInputStream fin = null;
StandardMimeMessageParser parser = null;
JasenMessage jm = null;
PrintWriter writer = new PrintWriter (fout);
for (int i = 0; i < files.length; i++)
{
if (files[i].isFile ())
{
try
{
writer.println ("*************************************************");
writer.println ("File " + (i + 1) + ": " + files[i].getName ());
writer.println ("*************************************************");
fin = new FileInputStream(files[i]);
mail = new SMTPMessage (null, fin);
parser = new StandardMimeMessageParser();
jm = parser.parse(mail);
writer.println ("HTML: " + jm.getHtmlPart());
EmailTokenizer et = new EmailTokenizer ();
et.setIgnoreHeaders (true);
long time = System.currentTimeMillis ();