super( s );
}
public void testAppend() throws Exception
{
ImapMailbox mailbox = getMailbox();
MessageFlags flags = new MessageFlags();
flags.setFlagged( true );
Date datetime = new Date();
String message =
"Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)\r\n" +
"From: Fred Foobar <foobar@Blurdybloop.COM>\r\n" +
"Subject: afternoon meeting\r\n" +
"To: mooch@owatagu.siam.edu\r\n" +
"Message-Id: <B27397-0100000@Blurdybloop.COM>\r\n" +
"MIME-Version: 1.0\r\n" +
"Content-Type: TEXT/PLAIN; CHARSET=US-ASCII\r\n" +
"\r\n" +
"Hello Joe, do you think we can meet at 3:30 tomorrow?\r\n" +
"\r\n";
long uid = appendMessage( message, flags, datetime, mailbox );
SimpleImapMessage imapMessage = mailbox.getMessage( uid );
assertEquals( 1, mailbox.getMessageCount() );
assertTrue( imapMessage.getFlags().isFlagged() );
assertTrue( ! imapMessage.getFlags().isAnswered() );
MimeMessage mime = imapMessage.getMimeMessage();
assertEquals( "TEXT/PLAIN; CHARSET=US-ASCII", mime.getContentType() );