You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Diogo Saad <di...@ibnetwork.com.br> on 2004/05/08 00:21:36 UTC

Mailet Question !!

I wanna develop a mailet that filters certain attachments for some
recipients!!
Something like this , suppose recipient diogo@adomain.com can receive
.txt and .doc attachments , and root@adomain.com can receive .doc and
.xls attachments
Now if I send a email to diogo@adomain.com and to root@adomain.com  with
a .txt attachment my mailet should remove the attachment from
root@adomain.com message and keep it in diogo@adomain.com 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
diogo@ibnetwork.com.br
Inter Business Tecnologia e Servicos