如何从 Exchange 收件箱返回用户的未读邮件计数?

发布于 2024-07-10 15:50:44 字数 218 浏览 4 评论 0原文

我参与为我们公司编写一个小型内部 SharePoint 门户。 我认为创建一个 Web 部件来显示用户的未读邮件计数以及可能显示今天的日历任务列表将是一个“快速胜利”。 然而,我一直在寻找与 OWA Web 服务相关的信息,但我看不出有什么简单的方法可以做到这一点。

我是不是傻了,有没有一个简单的电话可以打? 如果不是,为了实现我想要的目标,我的第一步是什么?

谢谢!

I am involved in writing a little internal SharePoint portal for our company. I thought it would be a 'quick win' to get create a web part that would display the user's unread mail count, and possibly a list of today's calendar tasks. However, I have had a hunt around for information to do with OWA web services stuff and I can see no easy way of doing this.

Am I being stupid, is there a simple call you can make? If not what would my first steps be in order to achieve what I want?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

鱼窥荷 2024-07-17 15:50:44

几个月前,我使用 CDO 库和 C# .NET Windows Service 完成了此操作。示例代码如下

            MAPI.Folder inboxFolder = Inbox;
            MAPI.Messages messages = (Messages) inboxFolder.Messages;
            MAPI.MessageFilter filter = (MessageFilter) messages.Filter;
            filter.Unread = true;

A few months ago I have done this using CDO Library with C# .NET Windows Service.Example code was like this

            MAPI.Folder inboxFolder = Inbox;
            MAPI.Messages messages = (Messages) inboxFolder.Messages;
            MAPI.MessageFilter filter = (MessageFilter) messages.Filter;
            filter.Unread = true;
耶耶耶 2024-07-17 15:50:44

如果他们使用 Exchange 2007,您可以使用 Exchange Web 服务来查询收件箱。

这是MSDN中的参考。 FindFolder 操作将返回文件夹的未读计数。
http://msdn.microsoft.com/en-us/library/bb204119。 aspx

Visual Studio 可以为您生成代理类来帮助您入门:
http://msdn.microsoft.com/en-us/library/bb408522。 ASPX

If they're using Exchange 2007, you can use Exchange web services to query the inbox.

Here's the reference in MSDN. The FindFolder operation will return the unread count of a folder.
http://msdn.microsoft.com/en-us/library/bb204119.aspx

Visual Studio can generate the proxy classes for you to help you get started:
http://msdn.microsoft.com/en-us/library/bb408522.aspx

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