But does this also work for a Personal Folder file (.pst) which has its own Deleted Items folder? And how do I recognize a
Deleted Items folder with DefaultItemType and DefaultMessageClass since that folder can contain any type of message (so not only the defaults).
Thanks in advance,
Nimpie
MAPIFolder.DefaultItemType and .DefaultMessageClass will tell you the type of folder. If you actually want to match a folder to the default Inbox say, you can compare the folder EntryID's. Get the default Inbox (NameSpace.GetDefaultFolder(olFolderInbox) and its EntryID. Then compare the EntryID's of the folders you are iterating with that saved EntryID.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
I can I get the FolderType of a selected folder? For example: each Personal Folder has a Deleted Items folder. I want to iterate over the Personal Folders' Foldders list and get the FolderType (olFolderInbox, olFolderOutbox, etc.) for each folder. Any ideas?
Nimpie