Are there examples here or else where on how to handle a mutipart mime in nttp and/or mail?

It could recurse and I only have a Reader. I cat get Content from that.

Here is what I am thinking now:

Message m = g.getMessage(1);
Object c=m.getContent();
if (c instanceof Multipart) {
Multipart mp = (Multipart) c;
int parts = mp.getCount();
BodyPart bdy = mp.getBodyPart(1);
String mime = bdy.getContentType();


tia for any links, tips

.V


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



Reply via email to