out.flush();
out.close();
tmpMsgIn = new SharedFileInputStream(file);
final int size = tmpMsgIn.available();
final int bodyStartOctet = bodyStartOctet(tmpMsgIn);
// Disable line length... This should be handled by the smtp server component and not the parser itself
// https://issues.apache.org/jira/browse/IMAP-122
MimeEntityConfig config = new MimeEntityConfig();