A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Optimize iteration through mailitems



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old September 25th 07, 09:38 AM posted to microsoft.public.outlook.program_addins
[email protected][_2_]
external usenet poster
 
Posts: 6
Default Optimize iteration through mailitems

I'm currently experiencing very bad performance while iterating
through the mailitems in a folder. I have to do this to check some
values in a couple of my custom properties every time a user is
switching folders.
I have read a lot about the Items.SetColumns() method, but can't seem
to get it to work with my custom properties.
This method is supposed to cache the properties you want to use, so
Outlook doesn't need to open every property of every mailitem you
visit.

Examples of what I have tried:
items.SetColumns("Storage"); // where Storage is my custom property
items.SetColumns("http://schemas.microsoft/mapi/string/
{00020329-0000-0000-C000-000000000046}/Storage");
items.SetColumns("http://schemas.microsoft/mapi/id/{00020329-0000-0000-
C000-000000000046}/0x8020001E"); // 8020 is according to outlook spy
the tag for this property and 001E is the tag for STRING8
items.SetColumns("http://schemas.microsoft/mapi/proptag/0x8020001E");

In addition, I have tried every possible combination of the above,
with no luck...

Any suggestions!??

The method does work with EntryID, Subject and fields like that, but
not with my custom ones..

Any help would be appreciated

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot to speed up MailItems access Ivan Add-ins for Outlook 8 June 27th 07 05:39 PM
Move MailItems to another folder Gvaram Outlook and VBA 5 June 25th 07 12:46 PM
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
How To: select mailitems from my inbox? NFR Outlook - Using Forms 1 May 16th 06 03:41 PM


All times are GMT +1. The time now is 12:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.