Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 4 Mar 2008 09:31:10 -0800,    group: microsoft.public.platformsdk.mapi        back       


Detecting special folders in outlook   
Hi,
How do i detect if the folder i have is one of:
* Inbox
* Deteled Items
* Drafts
* Sent Items

I was using display name comparision which is not good. name could be easily 
changed to any oter name and also its not good for localization. Is there 
any other way to detect this?

Thanks.
date: Tue, 4 Mar 2008 09:31:10 -0800   author:   Param Jyothi Reddy

Re: Detecting special folders in outlook   
Read the value of the PR_ENTRYID property and use 
IMAPISession::CompareEntryID to compare with teh entry ids retriueved from:

* Inbox - IMsgStore::GetReceiveFolder("IPM", ...)
* Deteled Items - PR_IPM_WASTEBASKET_ENTRYID from IMsgStore
* Drafts - PR_IPM_DRAFTS_ENTRYID retrieved from the Inbox
* Sent Items - PR_IPM_SENTMAIL_ENTRYID from IMsgStore


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Param Jyothi Reddy"  wrote in message 
news:uHrCK2hfIHA.4744@TK2MSFTNGP06.phx.gbl...
> Hi,
> How do i detect if the folder i have is one of:
> * Inbox
> * Deteled Items
> * Drafts
> * Sent Items
>
> I was using display name comparision which is not good. name could be 
> easily changed to any oter name and also its not good for localization. Is 
> there any other way to detect this?
>
> Thanks.
>
date: Tue, 4 Mar 2008 13:52:38 -0700   author:   Dmitry Streblechenko

Re: Detecting special folders in outlook   
Hi Dmitry, Thanks for the reply.

#define PR_IPM_OUTBOX_ENTRYID PROP_TAG( PT_BINARY, 0x35E2)

#define PR_IPM_WASTEBASKET_ENTRYID PROP_TAG( PT_BINARY, 0x35E3)

#define PR_IPM_SENTMAIL_ENTRYID PROP_TAG( PT_BINARY, 0x35E4)

I could find only those 3 in the header file. Is the tag value for drafts 
and jumk-email in hex?

"Dmitry Streblechenko"  wrote in message 
news:e9Kk6ljfIHA.4140@TK2MSFTNGP04.phx.gbl...
> Read the value of the PR_ENTRYID property and use 
> IMAPISession::CompareEntryID to compare with teh entry ids retriueved 
> from:
>
> * Inbox - IMsgStore::GetReceiveFolder("IPM", ...)
> * Deteled Items - PR_IPM_WASTEBASKET_ENTRYID from IMsgStore
> * Drafts - PR_IPM_DRAFTS_ENTRYID retrieved from the Inbox
> * Sent Items - PR_IPM_SENTMAIL_ENTRYID from IMsgStore
>
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
> "Param Jyothi Reddy"  wrote in message 
> news:uHrCK2hfIHA.4744@TK2MSFTNGP06.phx.gbl...
>> Hi,
>> How do i detect if the folder i have is one of:
>> * Inbox
>> * Deteled Items
>> * Drafts
>> * Sent Items
>>
>> I was using display name comparision which is not good. name could be 
>> easily changed to any oter name and also its not good for localization. 
>> Is there any other way to detect this?
>>
>> Thanks.
>>
>
>
date: Tue, 4 Mar 2008 13:27:36 -0800   author:   Param Jyothi Reddy

Re: Detecting special folders in outlook   
A quick Google search returns the following links:
http://msdn2.microsoft.com/en-us/library/cc160671.aspx
http://msdn2.microsoft.com/en-us/library/bb820963.aspx

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Param Jyothi Reddy"  wrote in message 
news:eiStS6jfIHA.4196@TK2MSFTNGP04.phx.gbl...
> Hi Dmitry, Thanks for the reply.
>
> #define PR_IPM_OUTBOX_ENTRYID PROP_TAG( PT_BINARY, 0x35E2)
>
> #define PR_IPM_WASTEBASKET_ENTRYID PROP_TAG( PT_BINARY, 0x35E3)
>
> #define PR_IPM_SENTMAIL_ENTRYID PROP_TAG( PT_BINARY, 0x35E4)
>
> I could find only those 3 in the header file. Is the tag value for drafts 
> and jumk-email in hex?
>
> "Dmitry Streblechenko"  wrote in message 
> news:e9Kk6ljfIHA.4140@TK2MSFTNGP04.phx.gbl...
>> Read the value of the PR_ENTRYID property and use 
>> IMAPISession::CompareEntryID to compare with teh entry ids retriueved 
>> from:
>>
>> * Inbox - IMsgStore::GetReceiveFolder("IPM", ...)
>> * Deteled Items - PR_IPM_WASTEBASKET_ENTRYID from IMsgStore
>> * Drafts - PR_IPM_DRAFTS_ENTRYID retrieved from the Inbox
>> * Sent Items - PR_IPM_SENTMAIL_ENTRYID from IMsgStore
>>
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Param Jyothi Reddy"  wrote in message 
>> news:uHrCK2hfIHA.4744@TK2MSFTNGP06.phx.gbl...
>>> Hi,
>>> How do i detect if the folder i have is one of:
>>> * Inbox
>>> * Deteled Items
>>> * Drafts
>>> * Sent Items
>>>
>>> I was using display name comparision which is not good. name could be 
>>> easily changed to any oter name and also its not good for localization. 
>>> Is there any other way to detect this?
>>>
>>> Thanks.
>>>
>>
>>
>
>
date: Wed, 5 Mar 2008 10:37:23 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us