【发布时间】:2018-07-03 12:58:50
【问题描述】:
我正在尝试使用 r 中的 RDCOM 客户端获取邮件中附件的名称。
我能够得到主题的名称以及正文中的文本
但我不知道如何获取附件名称
OutApp <- COMCreate("Outlook.Application")
outlookNameSpace = OutApp$GetNameSpace("MAPI")
folder <- outlookNameSpace$Folders(1)$Folders(1)
emails <- folder$Items
emails(1)[['Subject']] #Gives me name of subject
emails(1)[['body']] # give me text in body of the mail
emails(1)[['attachments']] # Doesn't give me text. It gives me a pointer like
below
An object of class "COMIDispatch"
Slot "ref":
<pointer: 0x0000000008479448>
谁能帮我解决这个问题?
【问题讨论】:
-
它是零个或多个项目的集合,就像 folder$Items 是电子邮件的集合。
标签: r outlook rdcomclient