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/11/13 09:02:14 UTC

[jira] Created: (JAMES-1130) Make it possible to share MimeMessageSource till the message body needs to get altered

Make it possible to share MimeMessageSource till the message body needs to get altered
--------------------------------------------------------------------------------------

                 Key: JAMES-1130
                 URL: https://issues.apache.org/jira/browse/JAMES-1130
             Project: JAMES Server
          Issue Type: Improvement
            Reporter: Norman Maurer
            Assignee: Norman Maurer
             Fix For: 3.0-M3


At the moment as soon as the message content needs to get altered we "copy" the whole MimeMessage (when it is shared between Mail instances). Thats a waste of resources, when only the headers are modified (which is the case most of the time). We should better copy the headers into memory if needed and do the modification there. Then when write back the MimeMessage into the queue/store/etc we would just read the headers from memory and skip to read them from the MimeMessageSource. 

That would be a way more efficient,

-- 
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] Updated: (JAMES-1130) Make it possible to share MimeMessageSource till the message body needs to get altered

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated JAMES-1130:
---------------------------------

    Fix Version/s:     (was: 3.0-M3)
                   3.0

> Make it possible to share MimeMessageSource till the message body needs to get altered
> --------------------------------------------------------------------------------------
>
>                 Key: JAMES-1130
>                 URL: https://issues.apache.org/jira/browse/JAMES-1130
>             Project: JAMES Server
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>             Fix For: 3.0
>
>
> At the moment as soon as the message content needs to get altered we "copy" the whole MimeMessage (when it is shared between Mail instances). Thats a waste of resources, when only the headers are modified (which is the case most of the time). We should better copy the headers into memory if needed and do the modification there. Then when write back the MimeMessage into the queue/store/etc we would just read the headers from memory and skip to read them from the MimeMessageSource. 
> That would be a way more efficient,

-- 
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