|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
You are getting value as SPropValue .
Suppose its prop .
Now use following code to convert FILETIME to SYSTEMTIME
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
|
|
|
|
|
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.
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
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.
|
|
|
|
|
|
sampath-padamatinti wrote: how can i specify my path in this
Posting it again and again won't help, I suppose...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
sorry its unfortunately happened
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote: sorry its unfortunately happened
That's the funniest thing I read today!
|
|
|
|
|
Wait, wait, it will be a long day.
BTW here it is 12:00 am, what time iis it there?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: what time iis it there?
Same. I'm in Barcelona.
modified on Thursday, July 2, 2009 7:20 AM
|
|
|
|
|
Michael Schubert wrote: Same. I'm in Barcelona.
Oh, lucky man. I never been there.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
At the moment I wish I were in Alaska. It's fricking hot, 40+ degrees...
|
|
|
|
|
Michael Schubert wrote: I were in Alaska
Oh lucky man! I never been there...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: I never been there
Me neither. I hear they make delicious chocolate-moose there...
|
|
|
|
|
Michael Schubert wrote: It's fricking hot, 40+ degrees...
That's about what it is in my neck of the woods, with a little humidity thrown in for good measure.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Where are you located?
|
|
|
|
|
Oklahoma.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
And I thought there's only dry heat in the desert...
|
|
|
|