In "Keeping Sent Mail, but Not in Sent Items," March 2003, InstantDoc ID 37533, you explain how to use Rules Wizard rules to make Outlook store sent items in a specific folder, without keeping a copy in the Sent Items folder. But Outlook displays such sent items as unread mail; how do I mark these items as read?
The Rules Wizard doesn't offer the same Mark as read rule action for outgoing items as it does for incoming items. Instead, you need to use a little Outlook VBA code to watch for new items in the target folders and, as the items arrive, mark them as read.
Listing 1 shows code that sets up two Inbox subfolders named Jane and Flavius for such monitoring. (To download this code, go to http://www.windowsitpro.com/MicrosoftExchangeOutlook, type 47212 in the InstantDoc ID text box, and click the 47212.zip hotlink.) Place this code in the built-in ThisOutlookSession module in VBA. As each new item arrives, the ItemAdd event handler for the folder calls the MarkAsRead subroutine to change the item's UnRead property to False and save the item.
This is a good beginner project for those who haven't worked with Outlook VBA before. Newcomers might want to read up about VBA in my Windows IT Pro article "Back to Basics," August 2001, InstantDoc ID 21522.