Use of shift + Delete

  • Thread starter A De Vrijbuiter
  • Start date
A

A De Vrijbuiter

I have a program thats recieve email every minute with status info of a machine, after I read the mail with VB and put in one log-file I wil delete the mail item directly.
Now I delete the item with command 'mailitem.delete' but it is going to the default box deleted items .
But now the problem I want to delete the item without it is going to the deleted item box .
Do someone no a way to do this or how I can use the shift key option to do this?

Alexander from Holland
 
K

Ken Slovak - [MVP - Outlook]

That's how Item.Delete works in the Outlook object model. You can use CDO 1.21 code to get that Item as a CDO Message object and use CDO's Message.Delete method to permanently delete the item and bypass the Deleted Items folder. See www.cdolive.com/cdo5.htm for various CDO 1.21 code samples.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


I have a program thats recieve email every minute with status info of a machine, after I read the mail with VB and put in one log-file I wil delete the mail item directly.
Now I delete the item with command 'mailitem.delete' but it is going to the default box deleted items .
But now the problem I want to delete the item without it is going to the deleted item box .
Do someone no a way to do this or how I can use the shift key option to do this?

Alexander from Holland
 
Top