On MSDN, there is a nice intro to programming in Outlook:

<A target="_blank" HREF=http://msdn.microsoft.com/library/en-us/dnovba01/html/RulesWizard.asp>Aitken on Office
Beyond the Rules Wizard: Automating Outlook E-mail Handling with VBA
By Peter G. Aitken</A>