mailItem.Delete causing Outlook to report an error: "The items were copied instead of moved...."

  • Thread starter Thread starter Mystery Man
  • Start date Start date
M

Mystery Man

We have a C# application that takes the selected Outlook email
messages and places them into our application. Currently we do this
via a dialog and drag and drop. After they have benn copied across we
delete the item (which moves it across to the 'Deleted Items' folder.
(we use mailItem.Delete() for this purpose.

With the drag and drop mode, we are getting the following error:

"The items were copied instead of moved because the original items
could not be deleted. Some items could not be deleted. They were
either moved or already deleted, or access denied".

However, it does appear to work OK. In addition, this only occurs with
drag and drop. I am guessing that it may be the Outlook drag and drop
handler that is causing the error.

Any ideas on how to stop this message appearing??????
 
Back
Top