简体   繁体   English

Outlook 2016 Interop / C#:如何以编程方式解决“单击此处以在Microsoft Exchange上查看更多信息”

[英]Outlook 2016 Interop/C#: How to programmatically get around “Click here to view more on Microsoft Exchange”

I have a program that needs to access all the emails in a users mailbox. 我有一个程序需要访问用户邮箱中的所有电子邮件。 However, unless the "Click here to view more..." link at the bottom of each mailbox is clicked, some messages will be skipped. 但是,除非单击每个邮箱底部的“单击此处查看更多...”链接,否则将跳过某些消息。 Is there a way around this? 有没有解决的办法? I'm using C# and Outlook.Interop. 我正在使用C#和Outlook.Interop。 Thanks in advance. 提前致谢。

This happens because the OST file will only store the specified number of days/months worth of messages. 发生这种情况是因为OST文件将仅存储指定天数/月数的消息。 You can either 你可以

  1. Reset the option in the Exchange account properties dialog - move slider all the way to the right 重置“ Exchange帐户属性”对话框中的选项-将滑块一直向右移动
  2. Turn cached mode off completely to always open the mailbox in the online mode (Outlook will be noticeably slower). 完全关闭缓存模式,以始终以联机模式打开邮箱(Outlook会明显变慢)。
  3. Use Extended MAPI (C++ or Delphi only) or Redemption (any language) to open the folder in the online mode using the MAPI_NO_CACHE flag. 使用扩展MAPI(仅C ++或Delphi)或兑换 (任何语言)使用MAPI_NO_CACHE标志以在线模式打开文件夹。 You can play with that flag in OutlookSpy - click IMAPIFolder button, select the PR_ENTRYID property, right click, select IMAPISesion::OpenEntry , make sure MAPI_NO_CACHE bit is checked. 您可以在OutlookSpy中使用该标志-单击IMAPIFolder按钮,选择PR_ENTRYID属性,右键单击,选择IMAPISesion::OpenEntry ,确保已选中MAPI_NO_CACHE位。 When using Redemption, call RDOSession . 使用兑换时,请调用RDOSession GetFolderFromID() and specify the MAPI_NO_CACHE flag. GetFolderFromID()并指定MAPI_NO_CACHE标志。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 交换服务以获取C#中的会议参加者列表(Microsoft Outlook) - Exchange services to get list of attendees of a meeting (microsoft outlook) in C# 使用C#从Exchange 2016获取约会 - Get appointments from exchange 2016 With C# C# Winform 使用 Interop 和 Microsoft Outlook 365 应用程序客户端 - C# Winform using Interop with microsoft outlook 365 application client 如何使用Microsoft.Office.Interop.Outlook库通过C#读取.eml文件? - How Can I use Microsoft.Office.Interop.Outlook library to read .eml file using C#? 如何在使用 Microsoft.Office.Interop.Outlook 从 C# 发送邮件时删除“代表” - How to remove "on behalf of " while sending mail from C# using Microsoft.Office.Interop.Outlook 如何通过中间件(C#)将查询结果(SQL Server 2016)作为超链接(Microsoft Outlook)发送 - How to sent query results (SQL Server 2016) as hyperlink (Microsoft Outlook) via middleware (C#) c# Outlook 插件 vsto 在使用 OL2010 PIA 时访问 OL2016 Interop - c# outlook addin vsto access OL2016 Interop while working with OL2010 PIA C# 如何从 C# 控制台应用程序以编程方式访问共享 Outlook/Exchange 邮箱以将电子邮件从收件箱移动到另一个文件夹 - C# How to access a shared outlook/exchange mailbox programmatically from a C# console application to move emails from inbox to another folder C#SyncObject与Outlook Interop - C# SyncObject with Outlook Interop 使用Microsoft.Office.Interop.Outlook连接到Outlook的稳定性C#表单 - Stability C# Forms connected to Outlook using Microsoft.Office.Interop.Outlook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM