Tip

Free Outlook add-on a must in the developer's toolbox

OutlookSpy 2.15 is an application I would recommend to anyone who develops for Microsoft Outlook in any environment. It's from the same people who gave you the Redemption

    Requires Free Membership to View

for Outlook programming library and, most importantly, it's free.

Compatible with Outlook 97 through Outlook 2010, OutlookSpy creates a new toolbar for its functions in Outlook 2007 and creates a new ribbon in Outlook 2010. Using either the toolbar or the ribbon, you can browse Outlook and Collaboration Data Objects (CDO) object model interfaces, examine object properties and run live code on the objects via Visual Basic for Applications (VBA) or JavaScript.

OutlookSpy's Script Editor button opens a window to execute any VBScript or JavaScript code and also lets you load and save existing scripts. At the bottom of the window is a Debug.Print pane where you can view debug output. Currently, the script editor doesn't support advanced debugging features like breakpoints or watching variables, but the tool's creators are open to adding these features in the next release if users want them.

The Application button opens a window that lets you browse through all CDO object properties, events and functions that are available through Outlook's Application object interface. This window also has a script tab that allows you to run code against the _Application interface, which is the default object scope for the code editor. Similar buttons exist for the _Explorer, _Store, _Folder and _Item objects.

The IMAPISession, IAddrBook, IMsgStore, IMAPIFolder and IMessage buttons (Figure 1) allow you to browse each MAPI interface. You can retrieve a list of available properties for each interface and dump values from those properties in hex format or text. You can also edit or delete properties, save them to files and more. The Misc button reveals less common interfaces that allow you to dig deeper into the Outlook programming model.


Figure 1. The IMAPISession, IAddrBook, IMsgStore, MAPIFolder and IMessage buttons.

Note: All of the interface buttons are contextual. For example, if you select a message, the IMessage button will return properties for that message (Figure 2). If a button isn't enabled, it's because the selected object doesn't have attributes under that particular object model.


Figure 2. These are the properties of a selected message after hitting the IMessage button.

Navigating the Outlook Object Model and its associated functions can be tricky; OutlookSpy includes a set of how-tos for common usage scenarios and concepts. Among them are:

ABOUT THE AUTHOR
Serdar Yegulalp has been writing about computers and information technology for more than 15 years for a variety of publications, including InformationWeek, Windows Magazine and several TechTarget sites.

This was first published in August 2010

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.