The MailetContext has several sendMail methods tha reinsert the message into the spool, so you can do something like this:
MailetContext mc = getMailetContext(); try { mc.sendMail(mail); } catch (MessagingException e) { log("Exception re-inserting failed mail: ", e); } You can force the mail into any given processer by calling mail.setState("processorName"). Steve > -----Original Message----- > From: Diogo Saad [mailto:[EMAIL PROTECTED] > Sent: Monday, May 10, 2004 2:49 PM > To: 'James Users List' > Subject: RES: Mailet Question !! > > > OK I made a mailet that duplicates the message and removes > the unwanted attachments !!! How do I store this duplicated > instance in spool ( spool.store() ) , I mean ... How do I get > a reference to SpoolRepository from mailet context??? > > > > -----Mensagem original----- > > De: Noel J. Bergman [mailto:[EMAIL PROTECTED] > > Enviada em: segunda-feira, 10 de maio de 2004 17:47 > > Para: James Users List > > Assunto: RE: Mailet Question !! > > > > > > > So in that scenario I described earlier ( remove some > > attachments for > > > specific recipients ) the solution would be duplicate the > message ?? > > > > That would be a solution. One way or another you'll need to > > duplicate it. That could be done by forwarding, or internally > > in your own code. I would consider having a mailet that > > strips attachments, and then using the pipeline to implement > > the logic (and duplication). > > > > --- 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]