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 "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2007/01/31 22:28:05 UTC
[jira] Created: (JAMES-772) Clone mail for multiple recipients
Clone mail for multiple recipients
----------------------------------
Key: JAMES-772
URL: https://issues.apache.org/jira/browse/JAMES-772
Project: James
Issue Type: Sub-task
Reporter: Robert Burrell Donkin
--
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: (JAMES-772) Clone mail for multiple recipients
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/JAMES-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469202 ]
Robert Burrell Donkin commented on JAMES-772:
---------------------------------------------
On 1/31/07, Stefano Bagnara <ap...@bago.org> wrote:
> robert burrell donkin wrote:
> > On 1/15/07, Joachim Draeger <jd...@joachim-draeger.de> wrote:
> >
> > <snip>
> >
> >> Another important open task is to clone Mail objects for multiple
> >> recipients.
> >
> > what's needed to do this properly?
> >
> > - robert
>
> Loop over the recipients and:
> ----
> Mail newMail = new MailImpl(mail);
> newMail.setRecipients(notRecipients);
> newMail.setState(originalState);
> newMail.setRecipients(recipient1);
> mail.getRecipients().remove(recipient1);
> ----
>
> When mail remain one single message you can avoid the clone.
> Remember to call ContainerUtil.dispose() on each copy.
> The underlying MimeMessage is shared using a Copy-on-Write proxy.
>
> Stefano
> Clone mail for multiple recipients
> ----------------------------------
>
> Key: JAMES-772
> URL: https://issues.apache.org/jira/browse/JAMES-772
> Project: James
> Issue Type: Sub-task
> Reporter: Robert Burrell Donkin
>
--
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