[英]Modifying Outlook 2010 autocomplete stream
I am accesssing the Outlook 2010 cache using the below code and modifying it. 我正在使用以下代码访问Outlook 2010缓存并对其进行修改。
Please let me know how i can udpate the entry back to inbox mail store. 请让我知道如何将条目扩展回收件箱邮件存储。
Microsoft.Office.Interop.Outlook.Application oApp = Globals.ThisAddIn.Application;
Microsoft.Office.Interop.Outlook.MAPIFolder inboxFolder = oApp.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderInbox);
StorageItem storage = inboxFolder.GetStorage("IPM.Configuration.Autocomplete", OlStorageIdentifierType.olIdentifyByMessageClass);
PropertyAccessor propertyAcc = storage.PropertyAccessor;
byte[] got = propertyAcc.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x7C090102");
Thanks Jaspreet Singh 感谢Jaspreet Singh
You need to call propertyAcc.SetProperty
. 您需要调用propertyAcc.SetProperty
。
Are you parsing the autocomplete cache blob? 您是否在解析自动完成缓存Blob? Is using Redemption an option? 可以使用“ 兑换”吗? It exposes autocomplete as the RDONicknames collection: 它将自动完成公开为RDONicknames集合:
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Nicknames = Session.GetNicknames
set NickName = Nicknames.Add("Joe The User <test@dimastr.com>")
Nicknames.Save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.