How to "hard" delete item using extended mapi?

J

Julia

Hello

Which function in extened mapi for hard delete messages,
so they wont go to the deleted items folder?


thanks
 
D

Dmitry Streblechenko \(MVP\)

IMAPIFolder::DeleteMessages()
A note on terminology - a soft delete in Outlook is actually a move to the
Deleted Items folder, it has nothing to do with deletion.
A message is deleted when you call IMAPIFolder::DeleteMessages().
Hard delete in Extended MAPI is when you use the DELETE_HARD_DELETE flag
when calling IMAPIFolder::DeleteMessages (Exchange specific). In this case
you will not be able to undelete the message. Normally Exchange retains
deleted messages for some time, so you can undelete them using "Deleted Item
Recovery"

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
J

Julia

Ok,thanks.

BTW i notice that for a soft deleted item the parent is the original folder
and not the deleted folder?!

Thanks.
 
J

Julia

" BTW i notice that for a soft deleted item the parent is the original
folder"

sorry this section is about contacts item
when soft deleting them I see this behavior
 
D

Dmitry Streblechenko \(MVP\)

My question still stands: "Do you mean the MailItem.Parent property? When
and how do you read it?".

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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

Top