ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
View Changeset
|
Root Listing
root
/
ns_dev
/
Python
/
learning
/
Outlook_COM_test.py
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.
File Contents
#
Content
1
## 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)