I was actually wondering the same thing.  For sent items I really only need the 
PR_CLIENT_SUBMIT_TIME attribute, if the received time is unavailable it isn't a 
big deal.

When I use POI to parse emails that I did receive (Inbox), both 
PR_CLIENT_SUBMIT_TIME and PR_MESSAGE_DELIVERY_TIME are NULL.  In this situation 
I would expect at least the delivery time to be populate, and it seems that at 
this point both of the attributes should be populated. 

Thanks for your response!
Doug


-----Original Message-----
From: Philip Persad [mailto:[email protected]] 
Sent: Thursday, May 02, 2013 2:35 PM
To: Mackinnon, Douglas; [email protected]
Subject: RE: Accessing MAPI PR_CLIENT_SUBMIT_TIME Property

I'm not sure where the c# API is getting its data. But, pretty much by 
definition, a message in your sent box cannot have a delivery time. You only 
know that it had been sent. How are you expecting to get delivery information?

Sent from my Windows Phone
From: Mackinnon, Douglas
Sent: 02/05/2013 10:11 AM
To: [email protected]
Subject: Accessing MAPI PR_CLIENT_SUBMIT_TIME Property Hello All,

I've been searching the web and reading POI/Microsoft documentation and am 
hoping somebody can point me in the right direction.

I am parsing MSG files (MS Outlook 2010 / POI 3.9) and trying to access the 
MAPI properties PR_CLIENT_SUBMIT_TIME and PR_MESSAGE_DELIVERY_TIME...they don't 
appear available though.

I ran my files through the debug utility: org.apache.hsmf.dev.HSMFDump and the 
only two dates found were PR_LAST_MODIFICATION_TIME and PR_CREATION_TIME.

When I call org.apache.poi.hsmf.MAPIMessage.getMessageDate() a NULL is returned.

Since all the other methods were working I was just grabbing the date from the 
email headers...until I realized email messages from my "Sent Items" folder do 
not appear to have headers.

As an experiment I opened the same exact .msg file using C# and when I use 
their getSentDate and getReceivedDate the appropriate dates come back so this 
indicates to me that it must be stored in the .msg file someplace...I just need 
to figure out how to access them with Apache POI.

Any help would be greatly appreciated.

Thanks,
Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to