Please do not post HTML e-mail to the list.

> Actually (correct me if i'm wrong) this method does not duplicate
> the message, it uses the same Mail object setting different name
> and recipients.

And that does effectively duplicate the message within the spool.

  mail.setRecipients(rec);
  mail.setName(nameBuffer.toString());
  outgoing.store(mail);

effectively makes a duplicate of the message within the spool.
Unfortunately, in terms of performance, the message content and mail object
are tightly coupled in the current code, so when store(mail) is called with
a new name, the mail carrier and the message content are both duplicated in
the spool.

Mail.duplicate(String) is similar. but creates a new MailImpl object, which
is not necessary in RemoteDelivery, since we are not doing anything other
than spooling the instance.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to