Folder Types

  • Thread starter Thread starter Dav Banks
  • Start date Start date
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
 
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.
 
Back
Top