Posted By:
Ali_Naqvi
Posted On:
Thursday, April 25, 2002 11:20 PM
Hi everybody, Actually i want to parse MIME mail and all i am doing is like this Session session = Session.getDefaultInstance((props == null)?System.getProperties():props); InputStream in = new FileInputStream(FileName); MimeMessage msg = new MimeMessage(session,in); i can get all the headers correctly but when i get the contents using following Object body = msg.getContent(); i everytime get the body object as instance of ShareByteArrayInputStream but not the instance of MimeMultiPart. What i'm missing and why not i'm getting the MimeMultipart instance? Any help will be appreciated. Thanks in adv
More>>
Hi everybody,
Actually i want to parse MIME mail and all i am doing is like this
Session session = Session.getDefaultInstance((props == null)?System.getProperties():props);
InputStream in = new FileInputStream(FileName);
MimeMessage msg = new MimeMessage(session,in);
i can get all the headers correctly but when i get the contents using following
Object body = msg.getContent();
i everytime get the body object as instance of ShareByteArrayInputStream but not the instance of MimeMultiPart.
What i'm missing and why not i'm getting the MimeMultipart instance?
Any help will be appreciated.
Thanks in advance.
Ali
<<Less