Python COM Outlook Question

kyosohma at gmail.com kyosohma at gmail.com
Wed Mar 21 16:11:48 EDT 2007


On Mar 21, 2:15 pm, "liam_herron" <liam_her... at hotmail.com> wrote:
> 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.

I don't know how to do this, but I found you a couple websites that
should point you in the right direction:

http://www.boddie.org.uk/python/COM.html
http://webservices.xml.com/pub/a/ws/2003/05/13/email.html

Hope that helps.

Mike




More information about the Python-list mailing list