【问题标题】:How to Read all Meeting request going through Organisation Exchange Server如何阅读通过组织 Exchange 服务器的所有会议请求
【发布时间】:2016-01-03 06:29:04
【问题描述】:

我正在开发一个示例 C# 应用程序,它监视通过组织交换服务器的所有会议请求。我尝试使用 EWS 阅读来自特定电子邮件地址的所有邮件,

MailServer oServer = new MailServer("outlook.office365.com", 
                        "test@emailarchitect.net", "testpassword", ServerProtocol.ExchangeEWS );
            MailClient oClient = new MailClient("TryIt");

            // If your POP3 server requires SSL connection,
            // Please add the following codes:
            // oServer.SSLConnection = true;

            try
            {
                oClient.Connect(oServer);
                MailInfo[] infos = oClient.GetMailInfos();
                for (int i = 0; i < infos.Length; i++)
                {
                    MailInfo info = infos[i];
                    Console.WriteLine("Index: {0}; Size: {1}; UIDL: {2}",
                        info.Index, info.Size, info.UIDL);

                    // Receive email from mail server
                    Mail oMail = oClient.GetMail(info);

                    Console.WriteLine("From: {0}", oMail.From.ToString());
                    Console.WriteLine("Subject: {0}\r\n", oMail.Subject);
                }......

但上面的代码只读取来自特定邮件地址的邮件。我需要阅读通过特定组织交换服务器的所有会议请求(例如:表单 contoso.com 域) 是否可以使用 EWS,或者是否有任何其他可用的解决方案。

感谢任何帮助。

【问题讨论】:

  • 您提供的代码是否使用 EWS?似乎不是。此代码与您的问题有何关系?在您提供的代码中,您正在连接到 POP3 服务器。 EWS 仅适用于 Exchange 服务器。
  • 发布更新...当前我正在使用此代码 sn-p 来阅读特定邮件地址的收件箱邮件。是否有任何其他解决方案可以从组织邮件服务器读取所有邮件(主要是会议请求)(而不是在组织域中提供单个用户邮件地址)。
  • 您使用的 API 的名称是什么?

标签: c# exchangewebservices


【解决方案1】:

我建议您考虑使用传输代理https://msdn.microsoft.com/en-us/library/office/bb204097(v=exchg.150).aspx,传输代理将让您在传输管道中处理会议邀请。然后,您应该能够使用 ical 阅读器 https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.data.contenttypes.icalendar(v=exchg.150).aspx 或使用 TNEF 阅读器解析消息上的 TNEF 属性。有一个示例 icalendar 代理 http://blogs.technet.com/b/jasoning/archive/2011/08/17/icalendar-property-rewrite.aspx

干杯 格伦

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-13
    • 1970-01-01
    • 1970-01-01
    • 2017-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-02
    相关资源
    最近更新 更多