Platform SDK: Exchange Server |
The SubCondition COM class defines an object with properties that you can use to specify an attachment or recipient condition.
Use the SubCondition object to identifies messages where a condition is contained as a subordinate condition.
The following example identifies messages where Fred is in the To field:
const CdoPR_SENDER_NAME = &H0C1A001E const REL_EQ = 7 const MSG_RECIP = 1 Set objPropVal = CreateObject("MSExchange.PropertyValue") objPropVal.Tag = CdoPR_SENDER_NAME objPropVal.Value = "Fred" Set objPropCond = CreateObject("MSExchange.PropertyCondition") objPropCond.Value = objPropVal objPropCond.Operator = REL_EQ objPropCond.PropertyTag = CdoPR_SENDER_NAME Set objCmtCond = CreateObject("MSExchange.CommentCondition") objCmtCond.Condition = objPropCond Set objSubCond = CreateObject("MSExchange.SubCondition") objSubCond.Condition = objCmtCond objSubCond.Operator = MSG_RECIP ...