我是如何访问收件箱的:
我收到了这个错误信息:
outlook = Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder("6")
当我使用以下代码尝试访问Outlook中用户创建的文件夹时:
outlook = Dispatch("Outlook.Application").GetNamespace("MAPI")
Folder = outlook.Folders[1]
print (Folder)
我收到了这个错误信息:
raise IndexError("list index out of range")
IndexError: list index out of range
任何帮助都将不胜感激。