![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Dav Banks" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I only share certain types of event | simonproctor | Outlook - Calandaring | 0 | May 14th 06 05:35 PM |
Unspecific types of emails cause Outlook to Crash | AJ | Outlook - General Queries | 0 | April 30th 06 02:25 AM |
Create a search folder to look at all emails in one folder and selected criteria in other folders | [email protected] | Outlook - General Queries | 1 | April 10th 06 09:40 AM |
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? | Jaycee | Outlook - General Queries | 1 | February 22nd 06 04:54 PM |
How do I change or add an "Entry Types" in journal entrys | MGS | Outlook - General Queries | 2 | January 22nd 06 12:14 AM |