![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
I've tried out this using ExMAPI - speed was increased greatly.
|
#3
|
|||
|
|||
![]()
Have a look at the Items.SetColumns methods.
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Ivan" wrote in message ... I've tried out this using ExMAPI - speed was increased greatly. |
#4
|
|||
|
|||
![]()
Thanks, Dmitry!
When I tried to use this method in OOM it always returns null. I don't know why. Using MAPI, IMAPITable.SetColumns works fine. |
#5
|
|||
|
|||
![]()
I am not sure what you mean - SetColumns in OOM does not return anything; it
simply tells Outlook which properties you are planning to access later from the Items collection so that Outlook can make sure these properties get cached from the underlying MAPI table. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Ivan" wrote in message ... Thanks, Dmitry! When I tried to use this method in OOM it always returns null. I don't know why. Using MAPI, IMAPITable.SetColumns works fine. |
#6
|
|||
|
|||
![]()
Sorry for the confusion. I mean that after calling SetColumns in OOM every
returned item from Items collection is null. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting Duplicate Mailitems | Geoff | Outlook and VBA | 7 | October 19th 06 04:21 PM |
Sending MailItems from Outbox part 2 | Tom at GSD | Add-ins for Outlook | 6 | September 14th 06 06:42 PM |
Sending MailItems from Outbox withour dropping emails | Tom at GSD | Add-ins for Outlook | 0 | September 12th 06 07:01 PM |
How To: select mailitems from my inbox? | NFR | Outlook - Using Forms | 1 | May 16th 06 03:41 PM |
How to work with MailItems after pressing Send-Button | Darius | Add-ins for Outlook | 5 | January 20th 06 03:27 PM |