Moving a Recall Message in Outlook

S

Steve

I have an Outlook Add-in application that runs on Outlook 2003. It processes
emails that come into the Inbox, strips out needed information, and then
moves the emails to another folder, using the MailItem.Move() method. It
works fine until it tries to move a Recall email. When that happens, Outlook
will display a message box stating the custom form cannot be opened and
Outlook will use a default form instead. It will also throw an exception,
stating "The items were copied instead of moved because the original items
could not be deleted. The item could not be deleted. It was either moved or
already deleted, or access was denied." The dialog box stays up until
someone clicks the ok button, stopping the Outlook Add-in app. Once the ok
is clicked it continues on its way. As a temporary fix, before I issue the
MailItem.Move() command, I am looking at the MailItem Subject to see if it
starts with the word "Recall". If so, I do not move it. Is this the best
way to handle it? I would hate to ignore any emails where someone might
legitimately have the word "Recall" as the first word in their Subject line
(probably won't ever happen, but you never know). Thanks for any help.
 

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