| Revision: | 8 |
| Committed: | Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges |
| Content type: | text/x-python |
| File size: | 273 byte(s) |
| Log Message: | Initial Import |
| # | 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) |