I am not able to read the attachment in a mail as an outlook message using java mail.
I try to break my message in multi part and then read through them one by one.
When it comes to read in the attachment that is an outlook mail attachment itself to outlook message i.e. .msg file attached to message as an attachment the code does not recognize the .msg attachment and will return the name of the file as null.
Can someone help me out here to read the .msg attachment attached to the outlook message? I did a read through the net and found that the message is being a MIME type of message/rfc822 is the problem here. But I was not able to get over the solution though.
I need more detail on what you're seeing.
Are you seeing a part of type "message/rfc822"?
A message part might not have a file name, so don't depend on that.
You might want to try the msgshow.java demo program included with JavaMail.
You can use it to dump out the structure and the content of your message, and
you can read the source code to find out how to handle a message/rfc822 attachment.