View Single Post
  #6  
Old January 29th 09, 04:49 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get the encrypted MailItem on OutLook2003?

What I meant is that the folder that you use to call
IMAPIFolder:eleteMessages() is always the Drats folder
(NameSpacePtr-GetDefaultFolder(Outlook:lFolderDrafts); and it is highly
unlikely that the actual parent fodler is Drafts.
..I was simply suggesting to try to use the actual parent folder,.which can
be retrieved from MailItem.Parent.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:90e3124d08f42@uwe...
I'm sorry for reply so lately because of the Chinese New Year. Ok, let's
continue our discuss.
Thank you for your response.
Do you mean that if the Item's in inbox, then i can get this item even it
were encrypted?
I couldn't get your idea clearly, would you please explain it more
detailed,
thank you.
One more question, what could i do with the item's parent folder? TIA.

Dmitry Streblechenko wrote:
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.

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.

[quoted text clipped - 10 lines]
too, returned the same error.
what's the wrong with my code? please help me.


--
Message posted via http://www.officekb.com



Ads