mhacker has asked for the wisdom of the Perl Monks concerning the following question:

Hello, does anyone have any experience with accessing the Windows address book and an Outlook (Exchange) Contacts folder from perl?

The reason I ask is that have an application that synchronizes my Windows Adress book with my Cisco IP Phone directory. However, I don't use the Windows Adress Book, I use a Contacts folder on our Exchange server, and for some odd reason there is no way to export from Exchange into a forma that Windows Addres Book can import from. If I could code this in perl, I could set up a daily routine to copy phone numbers from Exchange->Windows Adress Book->Cisco directory automatically.

Thanks for any pointers.

  • Comment on Perl and Exchange/Windows address books

Replies are listed 'Best First'.
Re: Perl and Exchange/Windows address books
by bfdi533 (Friar) on Feb 08, 2006 at 15:29 UTC

    I have some code here that I will be glad to share with you. I am not going to do much to clean it up but it should be relatively readable. I use this code to connect to my Exchange Server and read all of my contacts. I then loop through each contact and store it into a table in a MySQL DB where the update date in the table is older than the update date on the contact.

    You will not need the MySQL code and that portion can just be omitted. The code to connect to Outlook and get the properties is pretty easy to sort out and find.

    Let me know if you have any questions about this code or what it is doing and I will do my best to answer.

    Here is the code. Hope it helps.

      Absolutely fantastic! The Exchange part was the one I was worried about... I'll try it out. Thanks a lot!