| Revision: | 591 |
| Committed: | Tue Nov 3 22:45:12 2015 UTC (10 years, 4 months ago) by nino.borges |
| Content type: | text/x-python |
| File size: | 273 byte(s) |
| Log Message: | Moved dir out of main dir. |
| # | 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) |