exchange mailstore - FolderCreate event

W

wlan

Hi,

I'm doing some custom operation when user creates a new folder in mailbox.
for doing above, i'm listening folderCreate event of mail store.

In Outlook 2003, sometimes i'm getting foldercreate event for folders with
numeric name. I don't know reason...

The folder names looks like 33xxxx etc...any idea who creates this
folders?exchange server?

thanks
 
K

Ken Slovak - [MVP - Outlook]

Never seen that. Are these folders within a logon's mailbox? Are there any
actual folders corresponding to those names, if so what do they contain?

The only thing I can think of offhand is maybe you're being notified of
creation of temporary search folders created when Advanced Find is used (or
some other operations). If the folders are transient that's possible. See if
you can capture one and review its MAPI properties. See if PR_FOLDER_TYPE
(0x36010003) == 2. That would be FOLDER_SEARCH. For DASL syntax it would be
"http://schemas.microsoft.com/mapi/proptag/0x36010003" (not an URL).

That property isn't exposed in the object model, so you'd need to be using a
lower level API such as CDO 1.21, Extended MAPI, or a MAPI wrapper such as
Redemption (www.dimastr.com/redemption) to get at it. In Outlook 2007 you
could use the Folder.PropertyAccessor object with that DASL tag above to
return the PT_LONG value of PR_FOLDER_TYPE.
 

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