[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to