MimeMessageWrapper.getSize() should not parse the message
---------------------------------------------------------
Key: JAMES-1159
URL: https://issues.apache.org/jira/browse/JAMES-1159
Project: JAMES Server
Issue Type: Improvement
Components: James Core
Affects Versions: 3.0-M2, 3.0-M1, 2.3.2, 2.3.1, 2.3.0
Reporter: Norman Maurer
Fix For: 3.0-M3
MimeMessageWrapper.getSize() does load the whole message even if its not
needed. We can calculate the body size with just loading the headers and then
use MimeMessageSource.getSize() - headers.getSize() - 2;
This is a way more effective and does not waste resources
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]