[python-win32] List of keys and values
Aaron Reabow
reabow at gmail.com
Tue Feb 18 19:59:54 CET 2014
Hi Guys,
This should be dead simple.
I am just trying to find a list of all of the key value pairs held for each
message.
These are the ones that I have found so far:
- subject
- SenderName
- Recipients
- TaskDueDate
I am using this simple code snippet
import win32com.client
outlook =
win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6) # "6" refers to the index of a folder -
in this case,
# the inbox. You can change that number
to reference
# any other folder
messages = inbox.Items
message = messages.GetLast()
then doing this for eample:
for message in messages:
print message.TaskDueDate
i was wondering what else I can get access to for a message?
many thanks in advance,
Aaron
--
Aaron Reabow
+27 83 649 7567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20140218/57d51e05/attachment.html>
More information about the python-win32
mailing list