*
* @param document the document.
* @return the HTML version of the document.
*/
private String getMboxDocument( String[] document ) {
MutableString res = new MutableString();
res.append( "From MAILER-DAEMON Fri Apr 15 16:22:32 2005\n" );
res.append( "Date: 15 Apr 2005 16:22:32 +0200\n" );
res.append( "From: Mail System Internal Data <MAILER-DAEMON@sliver.usr.dsi.unimi.it>\n" );
res.append( "Subject: " + document[ 0 ] + "\n" );
res.append( "Message-ID: <1113574952@sliver.usr.dsi.unimi.it>\n" );
res.append( "X-IMAP: 1102967122 0000138458\n" );
res.append( "Return-Path: <matteo.xxx@unimi.it>\n" );
res.append( "Received: from localhost (localhost.localdomain [127.0.0.1])\n" );
res.append( "\tby sliver.usr.dsi.unimi.it (8.12.11/8.12.11) with ESMTP id iAUNtadn007305\n");
res.append( "\tfor <vigna@localhost>; Wed, 1 Dec 2004 00:55:36 +0100\n" );
res.append( "Received: from law5.usr.dsi.unimi.it [159.149.146.241]\n" );
res.append( "\tby localhost with IMAP (fetchmail-6.2.5)\n" );
res.append( "\tfor vigna@localhost (single-drop); Wed, 01 Dec 2004 00:55:36 +0100 (CET)\n" );
res.append( "To: vigna@dsi.unimi.it\n" );
res.append( "Message-id: <Pine.WNT.4.33.0412010051240.-209505@p233-mmx>\n" );
res.append( "Content-type: TEXT/PLAIN; charset=iso-8859-15\n" );
res.append( "X-Warning: UNAuthenticated Sender\n" );
res.append( "Content-Transfer-Encoding: 8bit\n" );
res.append( "Content-Length: " + document[ 1 ].length() + "\n" );
res.append( "\n" );
res.append( document[ 1 ] + "\n" );
return res.toString();
}