Wrapped PST and SetSearchCriteria and Reminders

Apr 4, 2012 at 4:51 PM
We have had requests from our customers that they wanted to limit Outlook to where Outlook search
for reminders, so we created a small utility that they can change the 'search criteria' by selected
which folders to search in and also to restrict which folders to not search in.

We have mixed results that sometimes it works, other times it doesn't work.

When the user check only Calendar and Tasks, they create a even in the calendar folder that has a
reminder enabled.  Outlook will never popup a reminder on the new events or any events that should
be displayed.

What our utility does is it open the Reminders folder, get the search criteria and display which
folder is set to search on.  By default the top level folder is checked and the search state is
SEARCH_RECURSIVE.  We do not change the search state flag, so it will always have the
SEARCH_RECURSIVE enabled.  We set the container list of the folders that the user want to the
reminders to search in and also modify the restriction if they added any folders they want Outlook
to ignore.

So, does anybody know exactly how Outlook search for reminders?  Why would Outlook stop searching
for reminders after we update the search criteria?

Also, rarely, but sometimes Outlook will display reminders for events that no exists anywhere in the
PST file.  And you also cannot open the item from the Reminders window due to that Outlook cannot
open the event due to that it's gone.

I've used MFCMapi and Outlook Spy to verify that the search criteria is good.

Any clue to what's going on there? Regards, Shawn
Apr 4, 2012 at 5:01 PM

Outlook reads and validates the criteria list before using it. One of the checks they make is that IPM Subtree must be in the container list.

Apr 4, 2012 at 5:29 PM

Oh!  So, we cannot have the top level folder (IPM Subtree) unchecked?  The issue is that we have users that have multiple calendars and they want to don't want reminders from those calendars.  So, is the only solution is to just provide them the capability to restrict which folders to not search in?

Apr 4, 2012 at 5:41 PM

I suppose that might work.

Apr 4, 2012 at 5:52 PM

Another question, so if they do have the IPM Subtree checked and also other folders checked, would that confuses Outlook since it has the SEARCH_RECURSIVE flag set.  That would be redundant IMO due to that Outlook will search all subfolders anyway.

Apr 4, 2012 at 7:59 PM

The restriction that we set for the search criteria doesn't seems to be working.  I created a calendar folder "Calendar_Ignore" and the restriction is created as follows for the first set of RES_PROPERTY (the list of folders to ignore), and following the URL below:


EF 00 00 00 7D EB 1D BC 7C 79 E6 4F B7 B1 AF C4 15 E3 FE DE C2 83 00 00 Calendar_Ignore
EF 00 00 00 7D EB 1D BC 7C 79 E6 4F B7 B1 AF C4 15 E3 FE DE 62 21 00 00 Deleted Items
EF 00 00 00 7D EB 1D BC 7C 79 E6 4F B7 B1 AF C4 15 E3 FE DE C2 80 00 00 Drafts
EF 00 00 00 7D EB 1D BC 7C 79 E6 4F B7 B1 AF C4 15 E3 FE DE 42 81 00 00 Junk E-mail
EF 00 00 00 7D EB 1D BC 7C 79 E6 4F B7 B1 AF C4 15 E3 FE DE A2 21 00 00 Outbox

The link above doesn't say that the folders must only contain what is listed in the "Creating the Reminders Folder", so the new restriction that we created above, the reminders stops working for the default Calendar folder (which seems to be ignored), in fact, all of the reminders is no longer working.

So, is Outlook being extremely picky about only a set of folders that it want in the restriction that if it see a folder that it doesn't know about it the reminder search will stop working?

Apr 5, 2012 at 2:52 PM


Can you help us out any further?  This is effecting our customers that need the ability to limit to where Outlook to search for reminders.

Apr 5, 2012 at 5:04 PM

We didn't design this feature with this level of flexibility in mind.

Apr 5, 2012 at 5:21 PM

Huh, interesting....