mail =
new MailImpl(session.getConfigurationData().getMailServer().getId(),
(MailAddress) session.getState().get(SMTPSession.SENDER),
recipientCollection,
new SequenceInputStream(new SequenceInputStream(headersIn, msgIn),
new ReaderInputStream(new StringReader("\r\n"))));
// Call mail.getSize() to force the message to be
// loaded. Need to do this to enforce the size limit
if (session.getConfigurationData().getMaxMessageSize() > 0) {
mail.getMessageSize();
}