[ 
https://issues.apache.org/jira/browse/JAMES-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved JAMES-1159.
----------------------------------

    Resolution: Fixed
      Assignee: Norman Maurer

done

> 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: 2.3.0, 2.3.1, 2.3.2, 3.0-M1, 3.0-M2
>            Reporter: Norman Maurer
>            Assignee: 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]

Reply via email to