btw, here's a sample script:

Automating Microsoft Outlook: Script to display unread Outlook mail items