问题描述
我刚开始编写Python代码,并试图运行测试以确定电子邮件附件(.xls文件)是否已使用密码加密。我正在使用win32com从Outlook中检索,然后遍历电子邮件和附件。
我已经查看了Microsoft documentation,但是找不到我需要的东西。
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox=outlook.GetDefaultFolder(6)
email_count = inbox.Items.count
messages = inbox.Items
for message in messages:
emailSendDate = message.senton.date()
attachments = message.attachments
emailSubject = message.Subject
for attachment in attachments:
attachment_name = attachment.filename
#a way to test if email attachment is encrypted?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)