You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2010/12/29 12:27:46 UTC

[jira] Created: (JAMES-1159) MimeMessageWrapper.getSize() should not parse the message

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-1159) MimeMessageWrapper.getSize() should not parse the message

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org