Python COM Outlook Question




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.

.



Relevant Pages

  • Retrieve mail from Exchange 2000/5.5 using C#
    ... I need to be able to specify the URL of the server I am connecting ... I need to be able to specify the inbox I want (I have different ... Connection to exchange server at ...
    (microsoft.public.dotnet.languages.csharp)
  • Connect to exchange via C# and read inbox
    ... I need to be able to specify the URL of the server I am connecting ... I need to be able to specify the inbox I want (I have different ... Connection to exchange server at ...
    (microsoft.public.exchange2000.development)
  • Re: Create rules doesnt work...AT ALL
    ... The stuborn one may only appear to look the same. ... in the subject, and run it on my Inbox, and the mail still sits there staring me in the face. ... Be very careful in what you specify, it's not able to guess what you want. ...
    (microsoft.public.office.misc)
  • Re: Create rules doesnt work...AT ALL
    ... Be very careful in what you specify, it's not able to guess what you want. ... Made a rule to delete anything with "Free" in the subject, and run it on my Inbox, and the mail still sits there staring me in the face. ...
    (microsoft.public.office.misc)