Programatically Mark as Read


Al Secen

I have filters set up to move most junk mail to a specific
folder. I now want to mark all those items as read. I
find that the the folder and each MailItem has an Unread
property that is Read Only.

I have all the code for accessing the folder and looping
through the messages. How can I programmatically apply the
Mark as Read to either the folder or each item in the

I have consulted Knowledge Article 223745 but that only
applies to NEWLY added items to a folder. This request is
against items that are sent to me.

Thanks for your help

Tom Rizzo [MSFT]

CDO 1.21 can do this. Loop through the folder and set the unread property
in CDO to false.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question