Question

I need to extract all the emails that show up as autocomplete entries in Outlook 2007. I mostly need to create a list of all the email addresses which I have sent emails to in the past and dump them into excel.

Should I be connecting to Outlook through COM somehow?

Thanks.

Was it helpful?

Solution

All of that information is in a file in the local settings with an extension NK2.

c:\Documents and Settings\{USERNAME}\Application Data\Microsoft\Outlook\{USERNAME}.NK2

This utility can read/edit the contents.

The file format itself is explained here: Google Code debunk2 explanation of NK2 file format

OTHER TIPS

Note that Outlook 2010 and newer stores the nicknames in the mailbox store, not in an NK2 file. You can either parse the blob used to store the data (it is as binary as it gets) or use Redemption and its RDONiocknames collection - see http://www.dimastr.com/redemption/rdonicknames.htm

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top