Programatically Mark as Read

  • Thread starter Thread starter Al Secen
  • Start date Start date
A

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
folder?

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
 
CDO 1.21 can do this. Loop through the folder and set the unread property
in CDO to false.

Tom
 
Back
Top