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.
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. >
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. >> > >
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. >>> >> >> > >