MessageFilter Object

The MessageFilter object specifies criteria for restricting a search on a Messages5C3TZ6O collection.

Quick Info

Specified in header file:

MDISP.ODL

First available in version:

OLE Messaging Library 1.1

Parent objects:

Messages5C3TZ6O collection

Child objects:

Fields0EU12H collection

Default property:

Subject1O5KM0A

 

Properties

 
Property name

Available in version

 
Type

 
Access

Application5GI0QO

1.1

String

Read-only

Class1CT5_O0

1.1

Long

Read-only

Conversation29BVHVP

1.1

String

Read/write

Fields3H1QI9

1.1

Field object or Fields collection object

Read-only

ImportanceK27NAA

1.1

Long

Read/write

Not11V4VCD

1.1

Boolean

Read/write

OrARYA3E

1.1

Boolean

Read/write

Parent13HN1VR

1.1

Messages collection object

Read-only

 

 

 

 

RecipientsKANP5E

1.1

Recipient object or Recipients collection object

Read/write

SenderBRL1LP

1.1

AddressEntry object

Read/write

Sent7175JH

1.1

Boolean

Read/write

Session23X3PG

1.1

Session object

Read-only

SizeVN_99

1.1

Long

Read/write

 

 

 

 

Subject1O5KM0A

1.1

String

Read/write

TextMIO_SN

1.1

String

Read/write

TimeFirstKKVOZ2

1.1

Variant (vbDate format)

Read/write

TimeLast6A0LS5

1.1

Variant (vbDate format)

Read/write

TypeE20MJ6

1.1

String

Read/write

Unread861FX8

1.1

Boolean

Read/write

 

Methods

 
Method name

Available in version

 
Parameters

IsSameAsHOEW_X

1.1

object as Object

 

Remarks

A MessageFilter object with no criteria is created by default for every Messages5C3TZ6O collection. This means that initially the filter s properties are unset and its child Fields0EU12H collection is empty. You specify the filter by setting values for its properties, and by adding fields to its Fields collection and setting a value for each added field.

The filter is invoked when the Messages collection is traversed with the Get methods. Each field participates in a MAPI search restriction comparing the field s ValueRDXHN1 property against the value of the Message property specified by the field s ID1WDZE73 property.

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.

The results of the individual restrictions are normally ANDed together to form the final filter value. You can change this by setting the OrARYA3E property, which causes all the results to be ORed instead of ANDed. You can also set the Not11V4VCD property to specify that the result of each individual restriction is to be negated before being ANDed or ORed into the final filter value.

The MessageFilter object is persistent within its parent Messages collection. It is not deleted even when it is released, and it remains attached to the Messages collection until the collection s Filter2NGT6YX property is set to Nothing or the collection is itself released.