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.
 

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

Back
Top