Platform SDK: Exchange Server

BitmaskCondition CoClass

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.

CLSID
95525549-095F-11D2-BC0F-00C04F8C92F7
ProgID
MSExchange.BitmaskCondition
Type Library
Microsoft Exchange 5.5 Rules Type Library 1.0 (Rule.dll)
Threading Model
Single-threaded apartment (STA)
Interfaces
The BitmaskCondition class exposes the IBitmaskCondition dual interface.

Remarks

Use the Bitmask condition to bit-wise AND a value with a message property. Oftentimes this property is &H0E070003 (CdoPR_MESSAGE_FLAGS).

Example

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
...