commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vic Cekvenich <>
Subject [NET] How to handle mutipart mime in commons-net (mail/nttp)?
Date Fri, 18 Jun 2004 17:57:58 GMT
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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message