[英]How to do I block IP & computer name from appearing in the SMTP email headers when sending from the Outlook Desktop application?
[英]How to get structured email headers from Outlook and process them in Power Automate Desktop
我正在寻找一种从 Outlook 获取结构化电子邮件标头并在 Power Automate Desktop 中处理它们的方法。
您可以使用以下 URL 在 Outlook 中检索电子邮件标头https://support.microsoft.com/en-us/office/view-internet-message-headers-in-outlook-cd039382-dc6e-4264-ac74-c048563d212c
从客户端应用程序 Outlook 获得的邮件标头是文本格式,很难处理。
我们假设我们正在从附加的 .msg 文件中解析邮件标头。 无法使用 Graph API 检索 json 格式的邮件标头。
幸运的是,Power Automate Desktop 支持执行 VB 脚本、JavaScript、Powershell 和 DOS 命令。 可以利用这些将文本转换为 Json 格式等。
如果可以在 VBS 中使用 Outlook 对象模型,则可以通过使用MailItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x007D001F")
读取PR_TRANSPORT_MESSAGE_HEADERS
MAPI 属性从收到的邮件中检索 MIME 标头
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.