How toIdentify MAPIFolder as "deleted items"?

  • Thread starter Thread starter Semut
  • Start date Start date
S

Semut

Hello, anyway to identify if a MAPIFolder is the system "deleted items"
folder?


thank you.
 
thanks

Eric Legault said:
Compare the object variables for the two folders directly (If objA =
objB).

Compare objA against objB returned from the
NameSpace.GetDefaultFolder(olFolderDeletedItems) method.

You could also examine the Name property (there *should* only be one
"Deleted Items" folder in a store), or check the MAPIFolder.FolderPath
property (\\<mailboxname>\Deleted Items would indicate the right folder in
case of duplicates, because it is placed at the root).
 
Back
Top