私はOutlookから次のコード(Reading e-mails from Outlook with Python through MAPI)を使って電子メールを読むことができると理解しました。pythonとwin32comでOutlookの電子メールを読むときの認証の仕組み
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6) # "6" refers to the index of a folder - in this case,
# the inbox. You can change that number to reference
# any other folder
messages = inbox.Items
message = messages.GetLast()
body_content = message.body
print body_content
ただし、上記のコードのどこにでもユーザー名とパスワードは提供していません。 次に、コードはOutlookアカウントをどのように認証しましたか?
ここでどのように認証が行われているか説明できます。
https://stackoverflow.com/questions/1225586/checking-email-with-python – amrit