| Platform SDK: Exchange Server |
The BitmaskCondition COM class defines an object with properties that you can use to specify a bit pattern with which you can mask a property.
Use the Bitmask condition to bit-wise AND a value with a message property. Oftentimes this property is &H0E070003 (CdoPR_MESSAGE_FLAGS).
The following example creates a condition that identifies messages with attachments.
const ACTION_DELETE = 3
const CdoPR_MESSAGE_FLAGS = &H0E070003
const MSGFLAG_HASATTACH = &H10
const B_NEZ = 2
Set BitMaskPropCond = CreateObject("MSExchange.PropertyCondition")
BitMaskPropCond.Value = MSGFLAG_HASATTACH
BitMaskPropCond.PropertyTag = CdoPR_MESSAGE_FLAGS
BitMaskPropCond.Operator = B_NEZ
...