Use a run a script rule to mark messages read

Last reviewed on December 21, 2012

In this week's version of a run a script rule, a simple script marks messages read when the message begins with certain words, in this case the words are "Thank you".

In order for the rule to work with thank you, Thank You, Thank you, or even THank you, you need to use LCASE. This converts the string to lower case before trying to match it.

LCase(Item.Body)

Sub MarkRead(Item As Outlook.MailItem)
   If Left(LCase(Item.Body), 9) = "thank you" Then
    Item.UnRead = False
    
 Item.Save
 End If
End Sub

Written by

Diane Poremsky
A Microsoft Outlook Most Valuable Professional (MVP) since 1999 and involved in IT support since 1985, Diane is the author of several books and video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.