Why do you assume that Drafts folder is the parent for the new item?
If anything it would be the Inbox. Or, even better, retrieve the parent
folder from the MailItem.Parent property.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:9097bfd7a9a1c@uwe...
yes, i tried to just pass 0 to DeleteMessages, return error is
MAPI_W_PARTIAL_COMPLETION. Maybe it is because my type is POP3/SMTP.
What should i do then, just to delete this item completely? Please help
me.
Dmitry Streblechenko wrote:
DELETE_HARD_DELETE only works in the Exchange online store.
Have you tried to just pass 0?
I need to process the MailItem when OnItemSend were triggered, So i make
a
copy(MailItem-Copy) of MailItem, say it is CopyMailItem, then i saved
[quoted text clipped - 63 lines]
too, returned the same error.
what's the wrong with my code? please help me.
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200901/1