You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Vic Cekvenich <ce...@portalvu.com> on 2004/06/18 19:57:58 UTC

[NET] How to handle mutipart mime in commons-net (mail/nttp)?

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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org