how to get message submit time.
-
hi please tell me how to display the message submit time. I know the property that is PR_CLIENT_SUBMIT_TIME. at least give me links for displaying the message time. thanx in advance
sampath-padamatinti
-
hi please tell me how to display the message submit time. I know the property that is PR_CLIENT_SUBMIT_TIME. at least give me links for displaying the message time. thanx in advance
sampath-padamatinti
Curious to know whether you solved the PATH problem
-
hi please tell me how to display the message submit time. I know the property that is PR_CLIENT_SUBMIT_TIME. at least give me links for displaying the message time. thanx in advance
sampath-padamatinti
sampath-padamatinti wrote:
please tell me how to display the message submit time
:confused: Which message are you talking about ? What is this display time you are talking about ? You know, "message" is such widely used in software that without background information, nobody will be able to help you...
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
hi please tell me how to display the message submit time. I know the property that is PR_CLIENT_SUBMIT_TIME. at least give me links for displaying the message time. thanx in advance
sampath-padamatinti
Are you talking about mail message time in MAPI?
Manish Patel. B.E. - Information Technology.
-
Are you talking about mail message time in MAPI?
Manish Patel. B.E. - Information Technology.
yes, write now I able to get every property like cc,bcc etc except time. how it is possible.
sampath-padamatinti
-
yes, write now I able to get every property like cc,bcc etc except time. how it is possible.
sampath-padamatinti
Which time are you talking about sent time or recieved time? Try to use
PR_MESSAGE_DELIVERY_TIME
. Is it what you want?Manish Patel. B.E. - Information Technology.
-
Which time are you talking about sent time or recieved time? Try to use
PR_MESSAGE_DELIVERY_TIME
. Is it what you want?Manish Patel. B.E. - Information Technology.
sent time
sampath-padamatinti
-
sent time
sampath-padamatinti
Then
PR_CLIENT_SUBMIT_TIME
is right. For Recieved:PR_MESSAGE_DELIVERY_TIME
Manish Patel. B.E. - Information Technology.
-
Then
PR_CLIENT_SUBMIT_TIME
is right. For Recieved:PR_MESSAGE_DELIVERY_TIME
Manish Patel. B.E. - Information Technology.
yaa, I know this property. and it returns the PT_SYSTIME. but the problem is i unable to display the time value. If you know plz explain indetail.
sampath-padamatinti
-
yaa, I know this property. and it returns the PT_SYSTIME. but the problem is i unable to display the time value. If you know plz explain indetail.
sampath-padamatinti
You are getting value as
SPropValue
. Suppose itsprop
. Now use following code to convertFILETIME
toSYSTEMTIME
SYSTEMTIME sTm;
FileTimeToSystemTime(&(prop.Value.ft), &sTm);Manish Patel. B.E. - Information Technology.
-
You are getting value as
SPropValue
. Suppose itsprop
. Now use following code to convertFILETIME
toSYSTEMTIME
SYSTEMTIME sTm;
FileTimeToSystemTime(&(prop.Value.ft), &sTm);Manish Patel. B.E. - Information Technology.
I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);
sampath-padamatinti
-
I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);
sampath-padamatinti
You are not retriving value from MAPI. Use this code:
LPSPropValue prop;
ULONG ulPropCount;
ULONG p[2]={ 1,PR_MESSAGE_DELIVERY_TIME };
HRESULT hr = m_pItem->GetProps((LPSPropTagArray)p, MAPI_CREATE, &ulPropCount, &prop);
SYSTEMTIME sTm;
FileTimeToSystemTime(&(prop->Value.ft), &sTm);
printf("%d\n",sTm.wDay);where
m_pItem
is your message object. Hope this helps you. :laugh:Manish Patel. B.E. - Information Technology.
-
I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);
sampath-padamatinti
Thanx ,so much I got now, I made a small change like follow. SYSTEMTIME sTm; FileTimeToSystemTime(&(pRows->aRow[i].lpProps[ePR_MESSAGE_DELIVERY_TIME].Value.ft), &sTm); printf("%d\n",sTm.wDay);
sampath-padamatinti
-
Thanx ,so much I got now, I made a small change like follow. SYSTEMTIME sTm; FileTimeToSystemTime(&(pRows->aRow[i].lpProps[ePR_MESSAGE_DELIVERY_TIME].Value.ft), &sTm); printf("%d\n",sTm.wDay);
sampath-padamatinti
No matter. You are fetching values by rows. I have suggested that was for single property.
Manish Patel. B.E. - Information Technology.