G
Guest
I get some properties from each MailItem in some folder:
_ItemsPtr spItems = spFolder->Items;
for (int j = 0; j < spItems->Count; j++)
{
_MailItemPtr spMailItem = spItems->Item( j+1 );
if ( !spMailItem )
continue;
// SenderEmailAddress, SenderName, SentOn, Subject and Recipients
properties reading here
}
But this code is very slow. Only 130 messages per second even without
reading any properties.
How can I speed up mail items processing greatly? I need to process
thousands of emails...
Thanks.
_ItemsPtr spItems = spFolder->Items;
for (int j = 0; j < spItems->Count; j++)
{
_MailItemPtr spMailItem = spItems->Item( j+1 );
if ( !spMailItem )
continue;
// SenderEmailAddress, SenderName, SentOn, Subject and Recipients
properties reading here
}
But this code is very slow. Only 130 messages per second even without
reading any properties.
How can I speed up mail items processing greatly? I need to process
thousands of emails...
Thanks.