Even a custom subject would do
strUniqueSubject = "MsgToBeDeletedRightNow"
set Msg = Application.ActiveExplorer.Selection(1)
Msg.Subject = strUniqueSubject
Msg.Save
set Dumpster = Application.Session.GetDefaultFolder(olFolderDeletedItems)
set Msg = Dumpster.Items.Find("[Subject] = '" & strUniqueSubject & "'")
if not (Msg Is Nothing) Then
Msg.Delete
End If
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Bilal said:
thanks dmitry. I appreicate if you could guide how to set the customer
property, find and delete using vbscript.
bilal