I need to check some headers in a mail collection that can be large
(more than 1000 mails per folder) and it seems that when I cast an
item from the collection outlook needs to retreive all related data
(body, attachments) from the remote server (IMAP) which is causing a
severe delay.
My code :
Outlook.Items items = OutlookApp.ActiveExplorer().CurrentFolder.Items;
foreach (object i in items)
{
Outlook.MailItem item = (Outlook.MailItem)i; //This line is slow
//reading/Writing some headers
}
Is there any way to prevent Outlook from calling the server? I just
need to work on the headers...
Thanks in advance
Louis
Did you ever find a resolution to this? I have almost exactly the same circumstance and I can't seem to find a solution.
What did you do in the end?
Thanks,
Dom
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> Scrolling in WPF Toolkit?s Column Chart
> http://www.eggheadcafe.com/tutorials/aspnet/0939d60c-8e17-4a27-b898-1fc772d2d6f6/scrolling-in-wpf-toolkits-column-chart.aspx
Did you ever find a resolution to this? I have almost exactly the same circumstance and I can't seem to find a solution.
What did you do in the end?
Thanks,
Dom
> On Friday, October 30, 2009 5:02 PM lsicard wrote:
>> On Thursday, September 09, 2010 9:51 AM Dominic Shaw wrote:
>> Hi Louis,
>>
>>
>>
>> Did you ever find a resolution to this? I have almost exactly the same circumstance and I can't seem to find a solution.
>>
>>
>>
>> What did you do in the end?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Dom
>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>> AJAX Web Service Driven Customers Table With Customer Details
>> http://www.eggheadcafe.com/tutorials/aspnet/4c3d2726-d99e-4f83-9e49-0d4867b6271a/ajax-web-service-driven-customers-table-with-customer-details.aspx