L
lsicard
Hi,
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
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