Scherer Pierre wrote:
I try to use Jaf with James! In fact, I would like catching some
MimeMessages in mails that transit by james in fonction of the Mime
type! I know that I must write the frameworks defines in the JavaMail
API (DataHandler,...) but I don't know where I must include this files
in James (In fact where does James make operations on the MimeMessage).

If someone has already doing that, can he tell me how I must organise my
files please!

I'm not completely sure what you're trying to do, but assuming you want to provide a custom DataHandler to give you a particular Object when you call MimeMessage.getContent(), you can programmatically register additional mime-type -> data handler's.


This seems overkill though... wouldn't it just be easier to do this manually, i.e., in your mailet check for a mime-type, and if it matches one of the ones you want to parse, call getInputStream() and parse accordingly?

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


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



Reply via email to