Anyone have any ideas on how to search in Outlook for something? Initiated from VBScript (ideally) or standard VB.

First pass - Search for a subject with "XXX" in it.
Second pass - Search for a message with "XXX" in the body of the message somewhere.
Third pass (and the one I actually want!) - Search for a message with an attachment called "XXX.DOC".

The output can be a simple MsgBox with the subject of the mail message.

Thanks, Chris