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).
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.