MAPI PropertyAccessor.GetProperty()在线模式慢[棘手的问题!] [英] MAPI PropertyAccessor.GetProperty() slow in Online Mode [Tricky question!]

查看:73
本文介绍了MAPI PropertyAccessor.GetProperty()在线模式慢[棘手的问题!]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常难以解决的问题。我的加载项遍历ItemSend中的收件人并解析电子邮件地址。对于类型为  OlAddressEntryUserType.olExchangeUserAddressEntry的GAL收件人,调用pa.GetProperty(PR_SMTP_ADDRESS).ToString();在线模式的Outlook中
非常缓慢。此问题仅发生在联机模式而不是Outlook的缓存模式中,但当然有一个非常重要的客户端需要在联机模式下运行Outlook。因此,我需要尽我所能来解决问题。我可以自己复制该问题,但我确实看到解析ExchangeUserAddressEntries的电子邮件地址非常缓慢。我还要提一下,客户端提到如果他们只使用LDAP而不是GAL,那么解析
似乎会更快。

I have a very difficult problem to solve. My add-in iterates through the recipients in ItemSend and resolves the email addresses. For GAL recipients of type OlAddressEntryUserType.olExchangeUserAddressEntry, calling pa.GetProperty(PR_SMTP_ADDRESS).ToString(); is painfully slow in Online Mode of Outlook. This problem only happens in Online Mode and not in Cached Mode of Outlook, but there is of course one very important client who needs to run Outlook in Online Mode. Therefore, I need to do everything I can to come up with a solution. I can replicate the issue myself and I do see that resolving email addresses for ExchangeUserAddressEntries is painfully slow. I should also mention that the client mentions that if they use LDAP only instead of GAL, then the resolving seems to go quicker.

你有没有经验的缓慢MAPI在线模式?或者你知道任何解决方法吗?或者调试/解决这个问题的方法?或者可以用来快速解析这些GAL收件人电子邮件的替代API?

Do you have any experience with the slowness of MAPI in Online Mode? Or are you aware of any workaround? Or way to debug/solve this? Or alternative API that can be used to resolve the email of these GAL recipients quickly?

欢迎任何想法。

推荐答案

每次拨打网络电话时,它都会比访问本地数据慢。尽量避免访问Recipient.AddressEntry,特别是AddressEntry对象的属性。很可能数据将位于邮件收件人
表中,您可以使用收件人,.PropertyAccessor访问该表。
Every time you make a network call it will be  slower than accessing local data. Try to avoid accessing Recipient.AddressEntry and especially AddressEntry object's properties in particular. Most likely the data will be in the message recipient table, which you can access using Recipient,.PropertyAccessor.


这篇关于MAPI PropertyAccessor.GetProperty()在线模式慢[棘手的问题!]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆