/** * This is the MimeMessage implementation - this should return ONLY the * body, not the entire message (should not count headers). Will have * to parse the message. */ public int getSize() throws MessagingException { if (!messageParsed) { loadMessage(); } return super.getSize(); }
/** * @see javax.mail.internet.MimeMessage#getContentStream() */ protected InputStream getContentStream() throws MessagingException { if (!messageParsed) { loadMessage(); } return super.getContentStream(); }
private synchronized void checkModifyHeaders() throws MessagingException { // Disable only-header loading optimizations for JAMES-559 if (!messageParsed) { loadMessage(); } // End JAMES-559 if (headers == null) { loadHeaders(); } modified = true; saved = false; headersModified = true; }
((MimeMessageWrapper) message).loadMessage(); out = streamRepository.put(key);