Sorry for the html .... I hate exchange!! So in that scenario I described earlier ( remove some attachments for specific recipients ) the solution would be duplicate the message ??
Diogo > -----Mensagem original----- > De: Noel J. Bergman [mailto:[EMAIL PROTECTED] > Enviada em: segunda-feira, 10 de maio de 2004 14:49 > Para: James Users List > Assunto: RE: Mailet Question !! > > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
