ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/learning/Outlook_COM_test.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
Original Path: Python/NinoCode/learning/Outlook_COM_test.py
File size: 273 byte(s)
Log Message:
Initial Import

File Contents

# User Rev Content
1 ninoborges 8 ## Testing the Outlook COM layer
2     ## EABORGES
3    
4     from win32com.client import Dispatch
5     from win32com.client import constants
6     s = Dispatch("Outlook.Application")
7     ns = s.GetNamespace("MAPI")
8     contacts = ns.GetDefaultFolder(10)
9     print "you have %i contacts"% len(contacts.Items)