View Single Post
  #1  
Old January 19th 09, 04:02 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 8
Default OL does not delete my items

Hello,

I currently do the following after pressing send:
- create a new e-mail
- change content from original e-mail and copy to new e-mail
- send new e-mail
- delete original e-mail

The deletion is the problem. I do it the following way (symbolic):

1. Item.Delete

2. Now I remember the ItemID

3. Later in a Timer event I continuously try to delete such mails from
basket:
Set MyItem = ConnectClass.VBInstance.Session.GetItemFromID(Item ID)
MyItem.Delete

On most standalone OL systems, the mail is removed completely. That is
ok. But on some systems (mostly OL 2007 connected to Exchange), the e-
mail still remains in basket even after calling MyItem.Delete multiple
times.
Now the most confusing behaviour: If I double-click open one of those
items in the basket, then close it, it will get removed by ghost hand.

I have Redemption Objects available (if this will be helpfull).

How to delete for sure?

Volker
Ads