Title: Mensagem
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.
I found another code fragment in LinearProcessor.service():

MailImpl notMail = (MailImpl)mail.duplicate(newName(mail));

I guess this is how it should be done isn't it? 
 
Diogo
 
-----Mensagem original-----
De: Steve Short [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 7 de maio de 2004 20:15
Para: James Users List
Assunto: RE: Mailet Question !!

Have a look at the service() method of the RemoteDelivery mailet as this splits a message into multiple messages depening on target mail server name. Then you just have to deliver or 'root' (route!) the message according to your rules.
 
Steve
-----Original Message-----
From: Diogo Saad [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 3:22 PM
To: James Users List
Subject: Mailet Question !!

I wanna develop a mailet that filters certain attachments for some recipients!!
Something like this , suppose recipient [EMAIL PROTECTED] can receive  .txt and .doc attachments , and [EMAIL PROTECTED] can receive .doc and .xls attachments
Now if I send a email to [EMAIL PROTECTED] and to [EMAIL PROTECTED]  with a .txt attachment my mailet should remove the attachment from [EMAIL PROTECTED] message and keep it in [EMAIL PROTECTED] message.
To get this behavior I MUST have 2 copies of the mail ( one to diogo and another to root). Looking at the LinearProcessor.service(...) code I realized that there's only ONE mail instance ...and to this mail the mailet is called....
How can I make this work??
 
Thanks in advance.
 
Diogo Saad
Inter Business Tecnologia e Servicos
 
 

Reply via email to