Python COM Outlook Question

liam_herron liam_herron at hotmail.com
Wed Mar 21 15:15:04 EDT 2007


Say I want to open a shared email inbox (named "DailyGoodEmails") that
is different from my default Outlook inbox, how do I specify this?

Currently, I would do:

s = Dispatch("Outlook.Application")
space = s.GetNameSpace("MAPI")
inbox = space.GetDefaultFolder(6)
myFolder = inbox.Folders[9] #open the folder i want


I have no idea where the "6" comes from but I want to be able to
specify "DailyGoodEmails" somewhere
and be able to iterate over the emails.




More information about the Python-list mailing list