从远程客户端使用 .NET 处理 Exchange 服务器上的邮箱的最简单方法是什么?

发布于 2024-08-04 09:05:00 字数 237 浏览 2 评论 0原文

因此,我必须创建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

你的背包 2024-08-11 09:05:00

如果您使用的是 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.

錯遇了你 2024-08-11 09:05:00

您可以尝试通过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.

流绪微梦 2024-08-11 09:05:00

事实证明,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文