Python win32com 控制 outlook
import win32com.client
ol= win32com.client.Dispatch('Outlook.Application')
my=ol.GetNamespace("MAPI")
rl= my.Folders('[email protected]').Folders('Inbox')
for msg in rl.Items: print(f"{msg.ReceivedTime} {msg.SenderName}")