Error when reading emails on a public folder on Exchange

A

aaronfude

Hi,

I use javamail to read message in a public folder on a MS Exchange
server. (It's simple: instead of "Inbox" you give it "Public Folders/My
Folder".)

However, accessing some messages fails. Trying to get the subject or
the sent date, etc throws an exception with a message something like (I
apologize me for not remembering exactly, I can only get this on my
intranet - which I am not right now):

Unable to open MAPI envelope.

Can you suggest what might be causing this problem? Out of every 100
emails this happens to about 5 emails. When I inspect those emails via
Outlook, I don't see anything special about them.

Thank you so much in advance

Aaron Fude
 
N

Nuevo

Check the message type. An email is type ipm.note but there are other
possible types that might be having problems with like IPM.Post

Nue
 
J

jennifer.grinfeld

Thanks!

I'm sorry : how do I get the message type? I don't see a getType()
method in Message.

Thanks again!

Aaron Fude
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top