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 "Markus Wiederkehr (JIRA)" <se...@james.apache.org> on 2008/11/30 14:09:44 UTC

[jira] Created: (MIME4J-88) Make message bodies sharable

Make message bodies sharable
----------------------------

                 Key: MIME4J-88
                 URL: https://issues.apache.org/jira/browse/MIME4J-88
             Project: JAMES Mime4j
          Issue Type: New Feature
    Affects Versions: 0.5
            Reporter: Markus Wiederkehr
             Fix For: 0.6


For manipulating and creating new messages it would be great if text or binary message bodies could be shared between entities without having to actually copy their content.

A text or binary body should provide some means to obtain a copy that can be attached to another entity. The shared content should be deleted only if all body copies are disposed of.

-- 
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: (MIME4J-88) Make message bodies sharable

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

Markus Wiederkehr updated MIME4J-88:
------------------------------------

    Attachment: mime4j-copyablebody.patch

This patch intruduces a new class, SingleBody, that replaces AbstractBody. SingleBody is meant to be a Body that does not have any other child bodies (as opposed to Message and Multipart).

SingleBody provides a method "copy" that returns a copy of the SingleBody instance that can be attached to another entity. The copy operation is optional, meaning that subclasses that don't need this feature do not have to override that method.

The classes StorageBinaryBody, StorageTextBody and StringTextBody intruduced in MIME4J-87 all support this operation, which implies that this patch requires MIME4J-87 to be committed first.

> Make message bodies sharable
> ----------------------------
>
>                 Key: MIME4J-88
>                 URL: https://issues.apache.org/jira/browse/MIME4J-88
>             Project: JAMES Mime4j
>          Issue Type: New Feature
>    Affects Versions: 0.5
>            Reporter: Markus Wiederkehr
>             Fix For: 0.6
>
>         Attachments: mime4j-copyablebody.patch
>
>
> For manipulating and creating new messages it would be great if text or binary message bodies could be shared between entities without having to actually copy their content.
> A text or binary body should provide some means to obtain a copy that can be attached to another entity. The shared content should be deleted only if all body copies are disposed of.

-- 
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] Closed: (MIME4J-88) Make message bodies sharable

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/MIME4J-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burrell Donkin closed MIME4J-88.
---------------------------------------

    Resolution: Fixed

Committed. Many thanks.

BTW if you haven't done so already, please consider filling in and submitting an ICLA (http://www.apache.org/licenses/index.html#clas). The Apache License 2.0 is sufficient but you've made substantial contributions over the last few months so having one on file would be great.

> Make message bodies sharable
> ----------------------------
>
>                 Key: MIME4J-88
>                 URL: https://issues.apache.org/jira/browse/MIME4J-88
>             Project: JAMES Mime4j
>          Issue Type: New Feature
>    Affects Versions: 0.5
>            Reporter: Markus Wiederkehr
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.6
>
>         Attachments: mime4j-copyablebody.patch
>
>
> For manipulating and creating new messages it would be great if text or binary message bodies could be shared between entities without having to actually copy their content.
> A text or binary body should provide some means to obtain a copy that can be attached to another entity. The shared content should be deleted only if all body copies are disposed of.

-- 
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] Commented: (MIME4J-88) Make message bodies sharable

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/MIME4J-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651874#action_12651874 ] 

Robert Burrell Donkin commented on MIME4J-88:
---------------------------------------------

I wonder whether the lock semantics of MultiReferenceStorage might benefit from some more consideration but I'll raise them on list.

> Make message bodies sharable
> ----------------------------
>
>                 Key: MIME4J-88
>                 URL: https://issues.apache.org/jira/browse/MIME4J-88
>             Project: JAMES Mime4j
>          Issue Type: New Feature
>    Affects Versions: 0.5
>            Reporter: Markus Wiederkehr
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.6
>
>         Attachments: mime4j-copyablebody.patch
>
>
> For manipulating and creating new messages it would be great if text or binary message bodies could be shared between entities without having to actually copy their content.
> A text or binary body should provide some means to obtain a copy that can be attached to another entity. The shared content should be deleted only if all body copies are disposed of.

-- 
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] Assigned: (MIME4J-88) Make message bodies sharable

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/MIME4J-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burrell Donkin reassigned MIME4J-88:
-------------------------------------------

    Assignee: Robert Burrell Donkin

> Make message bodies sharable
> ----------------------------
>
>                 Key: MIME4J-88
>                 URL: https://issues.apache.org/jira/browse/MIME4J-88
>             Project: JAMES Mime4j
>          Issue Type: New Feature
>    Affects Versions: 0.5
>            Reporter: Markus Wiederkehr
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.6
>
>         Attachments: mime4j-copyablebody.patch
>
>
> For manipulating and creating new messages it would be great if text or binary message bodies could be shared between entities without having to actually copy their content.
> A text or binary body should provide some means to obtain a copy that can be attached to another entity. The shared content should be deleted only if all body copies are disposed of.

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