[英]How to get email addresses from distribution list in outlook using VSTO
[英]How to access the "To" autocomplete email addresses in outlook vsto ? cached contacts
自動完成(又名昵稱)流作為隱藏(關聯)消息存儲在收件箱文件夾中,消息類別為“IPM.Configuration.Autocomplete”。 您可以在OutlookSpy 中查看數據:轉到 Inbox 文件夾,單擊 OutlookSpy 功能區上的 IMAPIFolder 按鈕,轉到“相關內容”選項卡,找到帶有 PR_MESSAGE_CLASS == "IPM.Configuration.Autocomplete" 的郵件,選擇PR_ROAMING_BINARYSTREAM
屬性查看其內容。
您可以使用 Outlook 對象模型 ( MAPIFolder.GetStorage("IPM.Configuration.Autocomplete", OlStorageIdentifierType.olIdentifyByMessageClass
) 打開該消息,使用PropertyAccessor.GetProperty
讀取PropertyAccessor.GetProperty
,然后解析它。請注意,無法使用 PropertyAccessor 打開大型自動完成流.
如果使用Redemption選項,它會將自動完成公開為RDONicknames集合:
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Nicknames = Session.GetNicknames
for each NickName in NickNames
Debug.Print NickName.Name & " - " & NickName.SmtpAddress
next
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.