Folder Types

D

Dav Banks

Hi,
Is there a way to get the folder type from a MAPIFolder object? I'm
trying to write code to archive messages based on the received date but I
can't create the new folders in the target store because I can't get the
source folder type. I figure there must be a way to do this since the
Outlook autoarchive creates the appropriate folder types when it runs.
I've seen some things that suggest using the DefaultItemType some of the
mapping are a bit unclear. Like olFolderInbox and olFolderNotes for folder
types but olMailItem, olNoteItem or olPostItem as DefaultItemTypes. What
gives?

db
 
K

Ken Slovak - [MVP - Outlook]

DefaultItemType returns the default type of item for a folder. You just have
to know how Outlook folders work, for example for EX public folders you get
olPostItem for mail folders. You could use DefaultMessageClass but that can
be changed by the user or by code.

DefaultItemType is the way to go.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top