View Single Post
  #2  
Old August 25th 06, 12:57 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to use CDO to delete copy of messages on POP3 Server?

Outlook stores the list of the message ids in a hidden message
(PR_MESSAGE_CLASS = "IPM.MessageManager") in the Inbox.
However there is no way to tell the POP3 provider in Outlook to delete a
particular message from a POP3 server.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Rui Feng" Rui wrote in message
...
Hi all.

My Outlook 2003 retrieves emails from a POP3 server. I set to "Leave a
copy
of messages on the server" and "Remove from server when deleted from
'Deleted Items'". I wrote a COM Add-in using VC++ 6.0

When recieved a new mail from certain sender, I can catch the
ItemAdd event and use CDO Message-Delete() to permanently delete that
new email. But the email has not been deleted from the POP3 server.

I guess there is a looking-up table in Outlook. When I delete an Email in
"Deleted Items Folder", Outlook find ID of that email and set a value. It
uses that value to notify the POP3 server next time to delete
corresponding
email
with the same ID on the server.

I think maybe CDO doesn't tell Outlook that "an email was deleted and
please
tell
POP3 Server to delete the copy when connected next time".

Is that true and how to solve it? If you can do it using other programming
language
like VB please tell me anyway.

Thank you. :-)

--------
Beijing, China



Ads