C++/VB - Discover if the selected folder is a mail folder

Asked By Hans Schmidt
14-Nov-09 05:15 PM
Hello,

i want to discover if the selected folder is a mail folder. Therefore
i had a look at the Properties of the IMapiFolder with OutlookSpy.
For example in a Contactfolder there is the property
PR_CONTAINER_CLASS IPF.Contact
But in mail folders i cannot find anything which leads to the
conclusion that this is a mail folder.
How can i discover that?

Thanks in advance and greets Hans
Outlook
(1)
IMapiFolder
(1)
OutlookSpy
(1)
Contactfolder
(1)
Greets
(1)
  Dmitry Streblechenko replied to Hans Schmidt
15-Nov-09 10:28 AM
If PR_CONTAINER_CLASS  is not set, assume IPF.Note.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
Create New Account
help
Remote and local MAPI folders. C++ / VB I open IMAPIFolder object using OpenEntry function. Can I differentiate if opened folder is remote or local folder. Thanks, Vitaly url:http: / / www.ureader.com / gp / 1475-1.aspx Win32 Messaging Discussions IMAPIFolder (1) Outlook (1) OutlookSpy (1) OpenEntry (1) Dec (1) A6bde6ae (1) PST (1) You mean distinguish between a folder can use. PR_MDB_PROVIDER would be the most useful. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - You mean distinguish between a folder in a PST store lot of properties you can use. keywords: Remote, and, local, MAPI, folders. description: I open IMAPIFolder object using OpenEntry function. Can I differentiate if opened folder is remote or local folder
DeleteMessages(soft delete) C++ / VB Hi. I can successfully delete a Imessage from outlook(hard delete), but I want to soft delete a IMessage with the IMapiFolder.DeleteMessages function. How should I do it? Win32 Messaging Discussions Outlook (1) PR_IPM_WASTEBASKET_ENTRYID (1) IMapiFolder (1) DeleteMessages (1) OlFolderDeletedItems (1) MAPI (1) DELETE_HARD_DELETE (1) HrGetOneProp (1) What exactly do you mean? Move the message to the Deleted Items folder? IMAPIFolder::CopyMessages(MESSAGE_MOVE). BTW, in MAPI hard delete means deleting with the DELETE_HARD_DELETE flag (Exchange specific) when calling IMAPIFolder::DeleteMessages. In Outlook UI, hard delete means deleting with the Shift key. The message can still be recoverable in Exchange. Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool Yes, I would like to Move the message to
retrieve the sender address using Extended MAPI (C++) C++ / VB Hello! I am writing the outlook add-in for Outlook 2003. There might be several email account in outlook from which the message can be sent. I need to get the sender address before address before message is sent out? Win32 Messaging Discussions IMAPIAdviseThink (1) LPSPropTagArray (1) MAPIFreeBuffer (1) Outlook 2003 (1) IMAPIFolder (1) GetIDsFromNames (1) LPSPropValue (1) IOlkAccountManager (1) No, it is not guaranteed that the accoutn IMAPISession::QueryIdentity to retrieve the current user details. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - Hi Dmitry, Thank you very much for explanation. Using IMAPISession different account, QueryIdentity won't help you. Did you try to play with this in OutlookSpy? Click IMAPISession | QueryIdentity and Misc | IOlkAccountManager. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook
Problem with IMAPITable returned from IMAPIFolder::GetContentsTabl C++ / VB This issue only happens in Outlook 2007, the code works fine in Outlook 2003. We have a folder created by a user under their Inbox. We get the IMAPIFolder interface via OpenEntry on the message store. I have confirmed the object type returned from that call is a folder (3). From the IMAPIFolder interface pointer, we call GetContentsTable(), which returns S_OK and fills up the IMAPITable pointer we an HRESULT of E_FAIL, which is very unusual. Any idea why this would work in Outlook 2003 and not in Outlook 2007? Win32 Messaging Discussions Outlook 2003 (1) Outlook 2007 (1) IMAPIFolder (1) IMAPITable (1) PbGlobalProfileSectionGuid (1) IProfSEct (1) ForMAPI (1