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