从远程客户端使用 .NET 处理 Exchange 服务器上的邮箱的最简单方法是什么?
因此,我必须创建一个 Windows 服务,扫描交换服务器上邮箱中的传入邮件以查找特定单词,然后删除该邮件。我要扫描的邮箱目前已容纳超过 70000 封邮件。我尝试使用 交换 WebDAV 协议 ,但通常会在响应之前超时。有 WebDAV 的替代品吗?
So I have to make a windows service that scans incoming mails in a mailbox on an exchange server for specific words and then deletes the mail. The mailbox I will be scanning currently holds more than 70000 mails. I've tried using the exchange WebDAV protocol, but it usually times out before responding. Are there any alternatives to WebDAV?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用的是 Exchange 2007 SP1 或更高版本,则应该能够使用 Exchange Web服务。如果它不是特别快,请不要感到惊讶 - 我无法让它的速度超过每分钟约 100 封电子邮件检索。不过,API 的使用速度相当快。
If you are using Exchange 2007 SP1 or later, you should be able to use Exchange Web Services. Don't be surprised if it isn't particularly fast - I couldn't get it to go faster than around 100 email retrievals per minute. The API was usable fairly quickly, though.
您可以尝试通过imap或pop3访问邮箱。
微软还提供了一些方法来挂接 SMTP 服务器。 查看此链接了解详细信息。
但我认为您的解决方案是在交换基础设施之前放置一个网关服务器,并使用 postfix 或其他 SMTP 的钩子功能。
you can try to access the mailbox via imap or pop3.
Also microsoft provide someway to hook the SMTP server. check this link for details.
But I think the solution for you would be a place a gateway server before your exchange infrastructure and use the hook posibilities of postfix or other SMTP.
事实证明,WebDAV 协议包含多种批量操作方法以及列表响应限制结构。我发现的两个真正有用的结构是 范围标头 和 BDELETE 方法。
It turned out that the WebDAV protocol contains several meths for bulk operations as well as list response limitation constructs. The two really useful contructs I found were the Range Header and the BDELETE Method.