private String readInput() throws IOException {
        final StringBuilder sb = new StringBuilder();
        do {
            sb.append(this.input.readLine()).append("\n");
        } while (this.input.ready());
        return sb.toString();
    }
See
<a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1474700&amp;group_id=78413&amp;atid=553186">...</a>
for discussion about this bug

@throws IOException        on IO error
@throws MessagingException on messaging error
src/test/java/de/gessnerfl/fakesmtp/smtp/SmtpComplianceIntegrationTest.java