Platform SDK: Exchange Server |
The ContentCondition COM class defines an object with properties that you can use to test the contents of a property tag.
Use the ContentCondition object to identify messages by text in the CDO properties CdoPR_SUBJECT (&H0037001E), which is the Subject field, or CodPR_BODY (&H1000001E), which is the Body of the message.
The following example creates a condition that identifies messages with the word "delete" in the Subject field.
const CdoPR_SUBJECT = &H0037001E const FULLSTRING = 0 Set objPropVal = CreateObject("MSExchange.PropertyValue") objPropVal.Tag = CdoPR_SUBJECT objPropVal.Value = "delete" Set objContCond = CreateObject("MSExchange.ContentCondition") objContCond.Value = objPropVal objContCond.PropertyType = CdoPR_SUBJECT objContCond.Operator = FULLSTRING ...