commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vic Cekvenich <cekvenich....@portalvu.com>
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

.V


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message