Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XGEN: CDO Returns Substring Search Instead of Prefix


View products that this article applies to.

This article was previously published under Q286507

↑ Back to the top


Symptoms

When you use Collaboration Data Objects (CDO) message filter objects to generate a result set, if you filter by one of the nine documented message properties in the following rule, an incorrect result record set may be returned. The results should be returned by using the following documented rule from the Microsoft Developer Network (MSDN): For fields of data type other than String, the MAPI search restriction type is RES_PROPERTY with relational operator RELOP_EQ. For fields of data type String, the restriction type is RES_CONTENT with fuzzy level options FL_SUBSTRING, FL_IGNORECASE, and FL_LOOSE. However, the following MAPI properties are compared using FL_PREFIX instead of FL_SUBSTRING:
  • PR_ACCOUNT
  • PR_BUSINESS_ADDRESS_CITY
  • PR_COMPANY_NAME
  • PR_DEPARTMENT_NAME
  • PR_DISPLAY_NAME
  • PR_GIVEN_NAME
  • PR_OFFICE_LOCATION
  • PR_SURNAME
  • PR_TITLE
However, the result set is comprised of a SUBSTRING search rather than the PREFIX, for example:
FilterFields.Add CdoPR_SURNAME, "M"
This builds a filter with all of the last names that contain the letter "M", rather than those that begin with the letter "M".

↑ Back to the top


Resolution

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Microsoft Exchange Server 5.5 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

Component: Collaboration Data Objects (OLEMSG, CDO)

Collapse this tableExpand this table
File nameVersion
Cdo.dll5.5.2654.45

NOTE: Because of file dependencies, Exchange Server version 5.5 Service Pack 4 must be applied before you apply this fix. For additional information on how to download the update for this problem, click the article number below to view the article in the Microsoft Knowledge Base:
289606� XGEN: Exchange Server 5.5 Post-Service Pack 4 Collaboration Data Objects Fixes Available

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in Microsoft Exchange Server version 5.5.

↑ Back to the top


More information

For more information about message filter collections in CDO, please refer to the following MSDN Web site:

↑ Back to the top


Keywords: KB286507, kbqfe, kbfix, kbexchange550presp5fix, kbbug, kbqfe, kbhotfixserver

↑ Back to the top

Article Info
Article ID : 286507
Revision : 8
Created on : 9/5/2007
Published on : 9/5/2007
Exists online : False
Views : 367