Properties — Explanation of MAPI properties.
Every object in MAPI has several properties set. The properties contains information about the object like the name, the unique id, etc... A property tag consists of a type and a unique id, the property type and the property id. A property tag is made as in the following example:
Example 2.1. Property definitions
define ('PR_SUBJECT', mapi_prop_tag(PT_TSTRING, 0x0037); // This will result in a constant PR_SUBJECT with the value 0x001E0037
Within the PHP-code all of the properties are defined with a PR_ prefix to indicatie it is a PRoperty. All type codes are prefixed with PT_ (Property Type).
The function mapi_prop_tag
accepts the
property type and the property id and returns a unique code that
indicates the property tag. This code is a simple long where the first
16 bits are the type and the last 16 bits are the ID.
Possible property types are:
PT_NULL, PT_ERROR Single properties PT_I2, PT_LONG, PT_FLOAT, PT_DOUBLE, PT_APPTIME, PT_BOOLEAN, PT_STRING8, PT_SYSTIME, PT_BINARY, PT_CLSID Multi value properties PT_MV_I2, PT_MV_LONG, PT_MV_R4, PT_MV_DOUBLE, PT_MV_APPTIME PT_MV_SYSTIME, PT_MV_STRING8, PT_MV_BINARY, PT_MV_CLSID Not support: PT_CURRENCY, PT_UNICODE, PT_OBJECT, PT_I8 PT_MV_CURRENCY, PT_MV_UNICODE, PT_MV_I8 Special properties for rules table: PT_ACTIONS and PT_SRESTRICTION