[Python-Dev] Homepage
Mark Hammond
MarkH@ActiveState.com
Thu, 10 May 2001 20:36:13 +1000
> > Set u=t.GetDefaultFolder(6)
> > Set u=t.GetDefaultFolder(3)
> I know it's off-topic, but Greg started it! ;-) Does anyone know which
> folders those two 'GetDefaultFolder' statements open ? I suspect it's
> sent-mail and trash, or some such, but I don't know enough about
> Outlook to
> know if it even *has* sent-mail and trash folders :)
Running makepy.py over the Outlook type library yields the following:
olFolderCalendar =0x9 # from enum OlDefaultFolders
olFolderContacts =0xa # from enum OlDefaultFolders
olFolderDeletedItems =0x3 # from enum OlDefaultFolders
olFolderDrafts =0x10 # from enum OlDefaultFolders
olFolderInbox =0x6 # from enum OlDefaultFolders
olFolderJournal =0xb # from enum OlDefaultFolders
olFolderNotes =0xc # from enum OlDefaultFolders
olFolderOutbox =0x4 # from enum OlDefaultFolders
olFolderSentMail =0x5 # from enum OlDefaultFolders
olFolderTasks =0xd # from enum OlDefaultFolders
So it appears the inbox and deleted items.
Mark.