3.1.4.1.1 Creating the Reminders Folder
To complete creation of the Reminders folder, a client SHOULD<4> set the search criteria for the Reminders folder. The search criteria are composed of restriction structures, as specified in [MS-OXCDATA] section 2.12. The search criteria are set by using the Folder Object Protocol, as specified in [MS-OXCFOLD], such that the Top of Personal Folders folder is the only container included in the search and the search applies a RES_AND restriction with the following two subclauses.
First, a RES_AND restriction with any of the following subclauses. Each of these subclauses is included in the RES_AND restriction only if the special folder exists within the message store. For example, if only the Drafts folder exists, then only the RES_PROPERTY subclause for the Drafts folder is included in the RES_AND restriction.
A RES_PROPERTY restriction with a relational operator (specified by the RelOp field) value of RELOP_NE, comparing the value of the PidTagParentEntryId property ([MS-OXCFOLD] section 2.2.2.2.1.7) with the FID ([MS-OXCDATA] section 2.2.1.1)/message ID (MID) ([MS-OXCDATA] section 2.2.1.2) pair of the Deleted Items folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Junk E-mail folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Drafts folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Outbox folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Conflicts folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Local Failures folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Server Failures folder.
A RES_PROPERTY restriction with a relational operator value of RELOP_NE, comparing the value of the PidTagParentEntryId property with the FID/MID pair of the Sync Issues folder.
Second, a RES_AND restriction with the following three subclauses:
A RES_NOT restriction that contains a RES_AND restriction with the following two subclauses:
A RES_EXIST restriction that specifies the PidTagMessageClass property ([MS-OXCMSG] section 2.2.1.3).
A RES_CONTENT restriction with the FuzzyLevelLow field set to FL_PREFIX, comparing the value of PidTagMessageClass property to the string value "IPM.Schedule".
A RES_BITMASK restriction with the BitMapRelOp field set to BMR_EQZ to compare the value of the PidTagMessageFlags property ([MS-OXCMSG] section 2.2.1.6) to the ULONG ([MS-DTYP]) value mfSubmitted.
A RES_OR restriction with the following two subclauses:
A RES_PROPERTY restriction with a relational operator value of RELOP_EQ, comparing the value of the PidLidReminderSet property ([MS-OXORMDR] section 2.2.1.1) to a Boolean value of 1.
A RES_AND restriction with the following two subclauses:
A RES_EXIST restriction that specifies the PidLidRecurring property ([MS-OXOCAL] section 2.2.1.12).
A RES_PROPERTY restriction with a relational operator value of RELOP_EQ, comparing the value of the PidLidRecurring property to the Boolean value of 1.
The search SHOULD provide the client with the information when requested, include child folders, and run without content indexing.