Back to the main page

Table Of Contents

Intro

This is a utility that is nothing much by itself, but has helped me on several occasions. The goal is very simple: detect changes in the names that are defined in the Outlook global address book. This can be very useful, especially if you work in a company with strict security policies when people leave the company (voluntarily or not). By taking a 'checkpoint' from time to time and comparing these checkpoints over time, monitoring 'who has left the building' becomes a very easy task.

My approach requires two steps : First you dump the addressbook to file (this is your baseline). A couple of days later you dump the address book to another file and you diff the two versions. Simple !


Dumping the Addressbook

For this I wrote a small C++ program (OK, I have to be honest, I found some sourcecode while searching the internet and modified it to my need). Initially I had a vbs script, but with such a script, Outlook would always prompt me if I wanted to allow that script access to the addressbook. When using MAPI, this problem disappears...

You can either download the sourcecode here (MS Visual Studio project file), or you can download a compiled version if the program here.

Unzip the program in a folder of your choice and open a command prompt in that folder. After you have done that, run 'MAPIAddressList' and redirect the output to a file. (like this : MAPIAddressList >file1.txt)

After the program finishes, file1.txt should have all items in the Global Address List. At a later time you should get another dump so you can diff both files

Diff two versions

When you have two versions of the addressbook (for example file1.txt and file2.txt), you probably want to diff them. If you work in a large company, these lists could contain 1000's of items and since you are only interested in the delta's between two files, you will need a little utility to find the difference. If you have UNIX utilities installed (cygwin for example), you could use diff ... but if you don't, I wrote a very simple perl script that would do just that. Of course then you need perl (ActiveState for example) installed on your machine. If you are interested in the diff utility, you can download it here.

Just unzip the utility in the same folder as your MAPIAddressList and run "difflists.pl file2.txt file1.txt". As far as I know, that's as simple as it gets... have fun with these tools if you can use them.

If this works for you and you find it worthwhile, feel free to donate something for it using Paypal or your credit card. Just to give you an idea, most people donate between 5 and 10 USD, 4 and 8 Euro or 700 and 1400 Yen.

Euro
US Dollars
Yen

Leave your comment

Fill in the captcha and the blanks below to add a comment. The only mandatory field is the "comments". Thanks!
-- Geert De Peuter



Your Name:
E-Mail (will not be shown):
URL:
Location:

Comments:

User Comments

<a href="http://www.louisvuihhttonoutletbbh.com">louis vuitton</a>
[url=http://www.louisvuissttonoutletbbh.com]louis vuitton[/url]
http://www.louisvuittoddnoutletbbh.com

fdsf
fdsf - 2012-01-07 04:33:17


I really liked reading your post!. Quallity content. With such a valuable blog i believe you deserve to be ranking even higher in the search engines
Ralph Lauren Outlet Online
2011-12-22 06:29:01


In the winter dressed in tight jeans and snow boots Gaotong it is a trend in the winter landscape line <a href="http://www.pinkuggsboots.us/">black uggs</a> Aukoala international brands

black uggs
black uggs - 2011-12-16 01:59:52


Aukoala snow boots with the influx of people <a href="http://www.pinkuggsboots.us/">pink uggs</a> Snow boots in the spring and autumn with a T-shirt bat shirt and shorts short skirts are very good fashion dress

pink uggs
http://www.pinkuggsboots.us - 2011-12-16 01:57:18


It’s very good for us to learn and read. Besides, if you like to play morph, you can click [url=http://www.interhermeshow.com]cheap Hermes bags[/url] to buy what you need.
cheap hermes bags
www.interherneshow.com - 2011-12-10 10:04:10


Tory Burch&#12288;&#12502;&#12540;&#12484;:http://www.toryburchstore.jp/category-1-b0.html
&#12488;&#12522;&#12540;&#12496;&#12540;&#12481; &#38772;:http://www.toryburchstore.jp/category-10-b0.html
Tory Burch&#12288;&#38772;:http://www.toryburchstore.jp/category-10-b0.html&#12288;
&#12488;&#12522;&#12540;&#12496;&#12540;&#12481; &#36001;&#24067;:http://www.toryburchstore.jp/category-7-b0.html
Tory Burch&#12288;&#12502;&#12540;&#12484;
Tory Burch&#12288;&#12502;&#12540;&#12484; - 2011-12-10 06:57:56


&#29436;&#19968;&#21495;:http://www.china-seiryokuzai.com/view/langyihao.html
&#33457;&#30196;:http://www.china-seiryokuzai.com/view/huachi.html
&#26089;&#28431;&#38450;&#27490;:http://www.china-seiryokuzai.com/class/Premature-ejaculation.html
&#29436;&#19968;&#21495;
&#29436;&#19968;&#21495; - 2011-12-10 06:57:05


&#28450;&#26041;&#34220;:http://www.yahookanpou.com/catalog/2.html
&#31934;&#21147;&#21092;:http://www.yahookanpou.com/catalog/1.html
&#23194;&#34220;:http://www.yahookanpou.com/catalog/63.html
&#28450;&#26041;&#34220;
&#28450;&#26041;&#34220; - 2011-12-10 06:56:31


&#33457;&#30196;:http://www.shanghaikanpo.com/view/1363.html
&#24040;&#20154;&#20493;&#22679;:http://www.shanghaikanpo.com/view/1334.html
&#24040;&#20154;&#20493;&#22679;&#26552;&#26462;:http://www.shanghaikanpo.com/view/1334.html
Anonymous
2011-12-10 06:55:30


Congratulations you!
Coach Outlet Store Online
2011-12-08 03:08:16


Show All Comments

Back to the main page