Prevent deleted messages from...

  • Thread starter Thread starter noone
  • Start date Start date
N

noone

....going to the 'Deleted Items' ? Is there a property to prevent this ?

Currently I am using objItem.Delete to remove a message, but it would
be nice if it didn't go to the DI box.

Thanks.
 
Two methods to delete an item permanently:

1) Use the Delete method on the item, then find the same
item in the Deleted Items folder, maybe using the Find
method to match the subject, and delete it, too.

2) Use CDO's Delete method on the item, which will delete
it permanently in one step. Sample code at
http://www.outlookcode.com/codedetail.aspx?id=41

Note that CDO is not part of the default Outlook
installation. You may need to rerun setup and add it.
 
Back
Top