This project is read-only.

Time and the sender can not read and why?

Sep 7, 2010 at 10:28 AM
Edited Sep 7, 2010 at 10:30 AM

Time and the sender can not read and why?

How to read?



Sep 7, 2010 at 6:22 PM

Perhaps the message you're trying to read doesn't have a sender or whatever time prop you're trying to read. For example, a draft message will not have a sender recipient yet associated with it, nor will appointment items, tasks, etc. These properties are not required and you should handle a not found exception being thrown when trying to read them.

Sep 8, 2010 at 6:37 PM

I think you are confused by the uncorrected comments in document, actually there's no 'sender' type.

recipient_type t = r.get_type(); // get the type of the recipient, sender, to, cc, etc.

I'm confused at the beginning as well... I got sender like this:

if (m.get_property_bag().prop_exists(0x0c1a) // suppose m is a message.

sender = m.get_property_bag().read_prop<std::string>(0x0c1a);


The key is finding the tagId(0x0c1a) for the field you want, refer this link


Which time are you talking about?

Sep 8, 2010 at 7:05 PM

You are right; I fixed the comment. Perhaps the PST message object should have accessor methods specific to all of the various sender properties.

Sep 10, 2010 at 7:24 AM

This time is send mail time..

Thanks very much...

Sep 13, 2010 at 4:24 PM

Try this one.


Canonical name: PidTagClientSubmitTime

Description: Contains the current time (in UTC) when the e-mail message is submitted.

Property ID: 0x0039

Sep 14, 2010 at 4:05 AM

I think this is also OK.

Property ID: 0x0e06

Sep 14, 2010 at 4:16 AM
Edited Sep 14, 2010 at 6:10 AM

Reading body error.

 CString CBody(m.get_body().c_str());

This message is only a picture attachment. No  Body.

My English is poor.

 error :


Test.exe 中的 0x755e9617 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x001894cc 处的 pstsdk::key_not_found<unsigned short>
Sep 14, 2010 at 8:51 AM
Edited Sep 14, 2010 at 8:54 AM

Thanks. I know.