Back to index

d-push  2.0
wbxmldefs.php
Go to the documentation of this file.
00001 <?php
00002 /***********************************************
00003 * File      :   wbxmldefs.php
00004 * Project   :   Z-Push
00005 * Descr     :   WBXML definitions
00006 *
00007 * Created   :   01.10.2007
00008 *
00009 * Copyright 2007 - 2011 Zarafa Deutschland GmbH
00010 *
00011 * This program is free software: you can redistribute it and/or modify
00012 * it under the terms of the GNU Affero General Public License, version 3,
00013 * as published by the Free Software Foundation with the following additional
00014 * term according to sec. 7:
00015 *
00016 * According to sec. 7 of the GNU Affero General Public License, version 3,
00017 * the terms of the AGPL are supplemented with the following terms:
00018 *
00019 * "Zarafa" is a registered trademark of Zarafa B.V.
00020 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00021 * The licensing of the Program under the AGPL does not imply a trademark license.
00022 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00023 *
00024 * However, if you propagate an unmodified version of the Program you are
00025 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00026 * Furthermore you may use our trademarks where it is necessary to indicate
00027 * the intended purpose of a product or service provided you use it in accordance
00028 * with honest practices in industrial or commercial matters.
00029 * If you want to propagate modified versions of the Program under the name "Z-Push",
00030 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00031 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00032 *
00033 * This program is distributed in the hope that it will be useful,
00034 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00035 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00036 * GNU Affero General Public License for more details.
00037 *
00038 * You should have received a copy of the GNU Affero General Public License
00039 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00040 *
00041 * Consult LICENSE file for details
00042 ************************************************/
00043 
00044 
00045 define('WBXML_SWITCH_PAGE',     0x00);
00046 define('WBXML_END',             0x01);
00047 define('WBXML_ENTITY',          0x02);
00048 define('WBXML_STR_I',           0x03);
00049 define('WBXML_LITERAL',         0x04);
00050 define('WBXML_EXT_I_0',         0x40);
00051 define('WBXML_EXT_I_1',         0x41);
00052 define('WBXML_EXT_I_2',         0x42);
00053 define('WBXML_PI',              0x43);
00054 define('WBXML_LITERAL_C',       0x44);
00055 define('WBXML_EXT_T_0',         0x80);
00056 define('WBXML_EXT_T_1',         0x81);
00057 define('WBXML_EXT_T_2',         0x82);
00058 define('WBXML_STR_T',           0x83);
00059 define('WBXML_LITERAL_A',       0x84);
00060 define('WBXML_EXT_0',           0xC0);
00061 define('WBXML_EXT_1',           0xC1);
00062 define('WBXML_EXT_2',           0xC2);
00063 define('WBXML_OPAQUE',          0xC3);
00064 define('WBXML_LITERAL_AC',      0xC4);
00065 
00066 define('EN_TYPE',               1);
00067 define('EN_TAG',                2);
00068 define('EN_CONTENT',            3);
00069 define('EN_FLAGS',              4);
00070 define('EN_ATTRIBUTES',         5);
00071 
00072 define('EN_TYPE_STARTTAG',      1);
00073 define('EN_TYPE_ENDTAG',        2);
00074 define('EN_TYPE_CONTENT',       3);
00075 
00076 define('EN_FLAGS_CONTENT',      1);
00077 define('EN_FLAGS_ATTRIBUTES',   2);
00078 
00079 class WBXMLDefs {
00083     protected $dtd = array(
00084                 "codes" => array (
00085                     0 => array (
00086                         0x05 => "Synchronize",
00087                         0x06 => "Replies", //Responses
00088                         0x07 => "Add",
00089                         0x08 => "Modify", //Change
00090                         0x09 => "Remove", //Delete
00091                         0x0a => "Fetch",
00092                         0x0b => "SyncKey",
00093                         0x0c => "ClientEntryId", //ClientId
00094                         0x0d => "ServerEntryId", //ServerId
00095                         0x0e => "Status",
00096                         0x0f => "Folder", //collection
00097                         0x10 => "FolderType", //class
00098                         0x11 => "Version",
00099                         0x12 => "FolderId", //CollectionId
00100                         0x13 => "GetChanges",
00101                         0x14 => "MoreAvailable",
00102                         0x15 => "WindowSize", //WindowSize - MaxItems before z-push 2
00103                         0x16 => "Perform", //Commands
00104                         0x17 => "Options",
00105                         0x18 => "FilterType",
00106                         0x19 => "Truncation", //2.0 and 2.5
00107                         0x1a => "RtfTruncation", //2.0 and 2.5
00108                         0x1b => "Conflict",
00109                         0x1c => "Folders", //Collections
00110                         0x1d => "Data",
00111                         0x1e => "DeletesAsMoves",
00112                         0x1f => "NotifyGUID", //2.0 and 2.5
00113                         0x20 => "Supported",
00114                         0x21 => "SoftDelete",
00115                         0x22 => "MIMESupport",
00116                         0x23 => "MIMETruncation",
00117                         0x24 => "Wait", //12.1 and 14.0
00118                         0x25 => "Limit", //12.1 and 14.0
00119                         0x26 => "Partial", //12.1 and 14.0
00120                         0x27 => "ConversationMode", //14.0
00121                         0x28 => "MaxItems", //14.0
00122                         0x29 => "HeartbeatInterval", //14.0 Either this tag or the Wait tag can be present, but not both.
00123                     ),
00124                     1 => array (
00125                         0x05 => "Anniversary",
00126                         0x06 => "AssistantName",
00127                         0x07 => "AssistnamePhoneNumber", //AssistantTelephoneNumber
00128                         0x08 => "Birthday",
00129                         0x09 => "Body", // 2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0.
00130                         0x0a => "BodySize", //2.0 and 2.5
00131                         0x0b => "BodyTruncated", //2.0 and 2.5
00132                         0x0c => "Business2PhoneNumber",
00133                         0x0d => "BusinessCity",
00134                         0x0e => "BusinessCountry",
00135                         0x0f => "BusinessPostalCode",
00136                         0x10 => "BusinessState",
00137                         0x11 => "BusinessStreet",
00138                         0x12 => "BusinessFaxNumber",
00139                         0x13 => "BusinessPhoneNumber",
00140                         0x14 => "CarPhoneNumber",
00141                         0x15 => "Categories",
00142                         0x16 => "Category",
00143                         0x17 => "Children",
00144                         0x18 => "Child",
00145                         0x19 => "CompanyName",
00146                         0x1a => "Department",
00147                         0x1b => "Email1Address",
00148                         0x1c => "Email2Address",
00149                         0x1d => "Email3Address",
00150                         0x1e => "FileAs",
00151                         0x1f => "FirstName",
00152                         0x20 => "Home2PhoneNumber",
00153                         0x21 => "HomeCity",
00154                         0x22 => "HomeCountry",
00155                         0x23 => "HomePostalCode",
00156                         0x24 => "HomeState",
00157                         0x25 => "HomeStreet",
00158                         0x26 => "HomeFaxNumber",
00159                         0x27 => "HomePhoneNumber",
00160                         0x28 => "JobTitle",
00161                         0x29 => "LastName",
00162                         0x2a => "MiddleName",
00163                         0x2b => "MobilePhoneNumber",
00164                         0x2c => "OfficeLocation",
00165                         0x2d => "OtherCity",
00166                         0x2e => "OtherCountry",
00167                         0x2f => "OtherPostalCode",
00168                         0x30 => "OtherState",
00169                         0x31 => "OtherStreet",
00170                         0x32 => "PagerNumber",
00171                         0x33 => "RadioPhoneNumber",
00172                         0x34 => "Spouse",
00173                         0x35 => "Suffix",
00174                         0x36 => "Title",
00175                         0x37 => "WebPage",
00176                         0x38 => "YomiCompanyName",
00177                         0x39 => "YomiFirstName",
00178                         0x3a => "YomiLastName",
00179                         0x3b => "Rtf", //CompressedRTF - 2.5
00180                         0x3c => "Picture",
00181                         0x3d => "Alias", //14.0
00182                         0x3e => "WeightedRank" //14.0
00183                     ),
00184                     2 => array (
00185                         0x05 => "Attachment", //2.5, 12.0, 12.1 and 14.0
00186                         0x06 => "Attachments", //2.5, 12.0, 12.1 and 14.0
00187                         0x07 => "AttName", //2.5, 12.0, 12.1 and 14.0
00188                         0x08 => "AttSize",  //2.5, 12.0, 12.1 and 14.0
00189                         0x09 => "AttOid",  //2.5, 12.0, 12.1 and 14.0
00190                         0x0a => "AttMethod", //2.5, 12.0, 12.1 and 14.0
00191                         0x0b => "AttRemoved", //2.5, 12.0, 12.1 and 14.0
00192                         0x0c => "Body", // 2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0.
00193                         0x0d => "BodySize", //2.5, 12.0, 12.1 and 14.0
00194                         0x0e => "BodyTruncated", //2.5, 12.0, 12.1 and 14.0
00195                         0x0f => "DateReceived", //2.5, 12.0, 12.1 and 14.0
00196                         0x10 => "DisplayName", //2.5, 12.0, 12.1 and 14.0
00197                         0x11 => "DisplayTo", //2.5, 12.0, 12.1 and 14.0
00198                         0x12 => "Importance", //2.5, 12.0, 12.1 and 14.0
00199                         0x13 => "MessageClass", //2.5, 12.0, 12.1 and 14.0
00200                         0x14 => "Subject", //2.5, 12.0, 12.1 and 14.0
00201                         0x15 => "Read", //2.5, 12.0, 12.1 and 14.0
00202                         0x16 => "To", //2.5, 12.0, 12.1 and 14.0
00203                         0x17 => "Cc", //2.5, 12.0, 12.1 and 14.0
00204                         0x18 => "From", //2.5, 12.0, 12.1 and 14.0
00205                         0x19 => "Reply-To", //ReplyTo 2.5, 12.0, 12.1 and 14.0
00206                         0x1a => "AllDayEvent", //2.5, 12.0, 12.1 and 14.0
00207                         0x1b => "Categories", //2.5, 12.0, 12.1 and 14.0
00208                         0x1c => "Category", //2.5, 12.0, 12.1 and 14.0
00209                         0x1d => "DtStamp", //2.5, 12.0, 12.1 and 14.0
00210                         0x1e => "EndTime", //2.5, 12.0, 12.1 and 14.0
00211                         0x1f => "InstanceType", //2.5, 12.0, 12.1 and 14.0
00212                         0x20 => "BusyStatus", //2.5, 12.0, 12.1 and 14.0
00213                         0x21 => "Location", //2.5, 12.0, 12.1 and 14.0
00214                         0x22 => "MeetingRequest", //2.5, 12.0, 12.1 and 14.0
00215                         0x23 => "Organizer", //2.5, 12.0, 12.1 and 14.0
00216                         0x24 => "RecurrenceId", //2.5, 12.0, 12.1 and 14.0
00217                         0x25 => "Reminder", //2.5, 12.0, 12.1 and 14.0
00218                         0x26 => "ResponseRequested", //2.5, 12.0, 12.1 and 14.0
00219                         0x27 => "Recurrences", //2.5, 12.0, 12.1 and 14.0
00220                         0x28 => "Recurrence", //2.5, 12.0, 12.1 and 14.0
00221                         0x29 => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
00222                         0x2a => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
00223                         0x2b => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
00224                         0x2c => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
00225                         0x2d => "DayOfWeek", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
00226                         0x2e => "DayOfMonth", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
00227                         0x2f => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
00228                         0x30 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
00229                         0x31 => "StartTime", //2.5, 12.0, 12.1 and 14.0
00230                         0x32 => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
00231                         0x33 => "TimeZone", //2.5, 12.0, 12.1 and 14.0
00232                         0x34 => "GlobalObjId", //2.5, 12.0, 12.1 and 14.0
00233                         0x35 => "ThreadTopic", //2.5, 12.0, 12.1 and 14.0
00234                         0x36 => "MIMEData", //2.5
00235                         0x37 => "MIMETruncated", //2.5
00236                         0x38 => "MIMESize", //2.5
00237                         0x39 => "InternetCPID", //2.5, 12.0, 12.1 and 14.0
00238                         0x3a => "Flag", //12.0, 12.1 and 14.0
00239                         0x3b => "FlagStatus", //12.0, 12.1 and 14.0
00240                         0x3c => "ContentClass", //12.0, 12.1 and 14.0
00241                         0x3d => "FlagType", //12.0, 12.1 and 14.0
00242                         0x3e => "CompleteTime", //14.0
00243                         0x3f => "DisallowNewTimeProposal", //14.0
00244                     ),
00245                     3 => array ( //Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501
00246                         0x05 => "Notify",
00247                         0x06 => "Notification",
00248                         0x07 => "Version",
00249                         0x08 => "Lifetime",
00250                         0x09 => "DeviceInfo",
00251                         0x0a => "Enable",
00252                         0x0b => "Folder",
00253                         0x0c => "ServerEntryId",
00254                         0x0d => "DeviceAddress",
00255                         0x0e => "ValidCarrierProfiles",
00256                         0x0f => "CarrierProfile",
00257                         0x10 => "Status",
00258                         0x11 => "Replies",
00259 //                        0x05 => "Version='1.1'",
00260                         0x12 => "Devices",
00261                         0x13 => "Device",
00262                         0x14 => "Id",
00263                         0x15 => "Expiry",
00264                         0x16 => "NotifyGUID",
00265                     ),
00266                     4 => array (
00267                         0x05 => "Timezone", //2.5, 12.0, 12.1 and 14.0
00268                         0x06 => "AllDayEvent", //2.5, 12.0, 12.1 and 14.0
00269                         0x07 => "Attendees", //2.5, 12.0, 12.1 and 14.0
00270                         0x08 => "Attendee", //2.5, 12.0, 12.1 and 14.0
00271                         0x09 => "Email", //Attendee_Email //2.5, 12.0, 12.1 and 14.0
00272                         0x0a => "Name", //Attendee_Name //2.5, 12.0, 12.1 and 14.0
00273                         0x0b => "Body", //2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0
00274                         0x0c => "BodyTruncated", //2.5, 12.0, 12.1 and 14.0
00275                         0x0d => "BusyStatus", //2.5, 12.0, 12.1 and 14.0
00276                         0x0e => "Categories", //2.5, 12.0, 12.1 and 14.0
00277                         0x0f => "Category", //2.5, 12.0, 12.1 and 14.0
00278                         0x10 => "Rtf", //2.5
00279                         0x11 => "DtStamp", //2.5, 12.0, 12.1 and 14.0
00280                         0x12 => "EndTime", //2.5, 12.0, 12.1 and 14.0
00281                         0x13 => "Exception", //2.5, 12.0, 12.1 and 14.0
00282                         0x14 => "Exceptions", //2.5, 12.0, 12.1 and 14.0
00283                         0x15 => "Deleted", //Exception_Deleted //2.5, 12.0, 12.1 and 14.0
00284                         0x16 => "ExceptionStartTime", //Exception_StartTime //2.5, 12.0, 12.1 and 14.0
00285                         0x17 => "Location", //2.5, 12.0, 12.1 and 14.0
00286                         0x18 => "MeetingStatus", //2.5, 12.0, 12.1 and 14.0
00287                         0x19 => "OrganizerEmail", //Organizer_Email //2.5, 12.0, 12.1 and 14.0
00288                         0x1a => "OrganizerName", //Organizer_Name //2.5, 12.0, 12.1 and 14.0
00289                         0x1b => "Recurrence", //2.5, 12.0, 12.1 and 14.0
00290                         0x1c => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
00291                         0x1d => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
00292                         0x1e => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
00293                         0x1f => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
00294                         0x20 => "DayOfWeek", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
00295                         0x21 => "DayOfMonth", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
00296                         0x22 => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
00297                         0x23 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
00298                         0x24 => "Reminder", //Reminder_MinsBefore //2.5, 12.0, 12.1 and 14.0
00299                         0x25 => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
00300                         0x26 => "Subject", //2.5, 12.0, 12.1 and 14.0
00301                         0x27 => "StartTime", //2.5, 12.0, 12.1 and 14.0
00302                         0x28 => "UID", //2.5, 12.0, 12.1 and 14.0
00303                         0x29 => "Attendee_Status", //12.0, 12.1 and 14.0
00304                         0x2a => "Attendee_Type", //12.0, 12.1 and 14.0
00305                         0x2b => "Attachment", //12.0, 12.1 and 14.0
00306                         0x2c => "Attachments", //12.0, 12.1 and 14.0
00307                         0x2d => "AttName", //12.0, 12.1 and 14.0
00308                         0x2e => "AttSize", //12.0, 12.1 and 14.0
00309                         0x2f => "AttOid", //12.0, 12.1 and 14.0
00310                         0x30 => "AttMethod", //12.0, 12.1 and 14.0
00311                         0x31 => "AttRemoved", //12.0, 12.1 and 14.0
00312                         0x32 => "DisplayName", //12.0, 12.1 and 14.0
00313                         0x33 => "DisallowNewTimeProposal", //14.0
00314                         0x34 => "ResponseRequested", //14.0
00315                         0x35 => "AppointmentReplyTime", //14.0
00316                         0x36 => "ResponseType", //14.0
00317                         0x37 => "CalendarType", //14.0
00318                         0x38 => "IsLeapMonth", //14.0
00319                         0x39 => "FirstDayOfWeek", //post 14.0 20100501
00320                         0x3a => "OnlineMeetingInternalLink", //post 14.0 20100501
00321                     ),
00322                     5 => array (
00323                         0x05 => "Moves",
00324                         0x06 => "Move",
00325                         0x07 => "SrcMsgId",
00326                         0x08 => "SrcFldId",
00327                         0x09 => "DstFldId",
00328                         0x0a => "Response",
00329                         0x0b => "Status",
00330                         0x0c => "DstMsgId",
00331                     ),
00332                     6 => array (
00333                         0x05 => "GetItemEstimate",
00334                         0x06 => "Version", //only 12.1 20100501
00335                         0x07 => "Folders", //Collections
00336                         0x08 => "Folder", //Collection
00337                         0x09 => "FolderType",   //Class //only 12.1 //The <Class> tag defined in code page 0 should be used in all other instances. 20100501
00338                         0x0a => "FolderId", //CollectionId
00339                         0x0b => "DateTime", //not supported by 14. only supported 12.1. 20100501
00340                         0x0c => "Estimate",
00341                         0x0d => "Response",
00342                         0x0e => "Status",
00343                     ),
00344                     7 => array (
00345                         0x05 => "Folders", //2.0
00346                         0x06 => "Folder", //2.0
00347                         0x07 => "DisplayName",
00348                         0x08 => "ServerEntryId", //ServerId
00349                         0x09 => "ParentId",
00350                         0x0a => "Type",
00351                         0x0b => "Response", //2.0
00352                         0x0c => "Status",
00353                         0x0d => "ContentClass", //2.0
00354                         0x0e => "Changes",
00355                         0x0f => "Add",
00356                         0x10 => "Remove",
00357                         0x11 => "Update",
00358                         0x12 => "SyncKey",
00359                         0x13 => "FolderCreate",
00360                         0x14 => "FolderDelete",
00361                         0x15 => "FolderUpdate",
00362                         0x16 => "FolderSync",
00363                         0x17 => "Count",
00364                         0x18 => "Version", //2.0 - not defined in 20100501
00365                     ),
00366                     8 => array (
00367                         0x05 => "CalendarId",
00368                         0x06 => "FolderId", //CollectionId
00369                         0x07 => "MeetingResponse",
00370                         0x08 => "RequestId",
00371                         0x09 => "Request",
00372                         0x0a => "Result",
00373                         0x0b => "Status",
00374                         0x0c => "UserResponse",
00375                         0x0d => "Version", //2.0 - not defined in 20100501
00376                         0x0e => "InstanceId" // first in 20100501
00377                     ),
00378                     9 => array (
00379                         0x05 => "Body", //2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0
00380                         0x06 => "BodySize", //2.5, but is in code page 17 as the EstimatedDataSize tag in ActiveSync versions 12.0, 12.1 and 14.0
00381                         0x07 => "BodyTruncated", //2.5, but is in code page 17 as the Truncated tag in ActiveSync versions 12.0, 12.1, and 14.0
00382                         0x08 => "Categories", //2.5, 12.0, 12.1 and 14.0
00383                         0x09 => "Category", //2.5, 12.0, 12.1 and 14.0
00384                         0x0a => "Complete", //2.5, 12.0, 12.1 and 14.0
00385                         0x0b => "DateCompleted", //2.5, 12.0, 12.1 and 14.0
00386                         0x0c => "DueDate", //2.5, 12.0, 12.1 and 14.0
00387                         0x0d => "UtcDueDate", //2.5, 12.0, 12.1 and 14.0
00388                         0x0e => "Importance", //2.5, 12.0, 12.1 and 14.0
00389                         0x0f => "Recurrence", //2.5, 12.0, 12.1 and 14.0
00390                         0x10 => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
00391                         0x11 => "Start", //Recurrence_Start //2.5, 12.0, 12.1 and 14.0
00392                         0x12 => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
00393                         0x13 => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
00394                         0x14 => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
00395                         0x16 => "DayOfWeek", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
00396                         0x15 => "DayOfMonth", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
00397                         0x17 => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
00398                         0x18 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
00399                         0x19 => "Regenerate", //Recurrence_Regenerate //2.5, 12.0, 12.1 and 14.0
00400                         0x1a => "DeadOccur", //Recurrence_DeadOccur //2.5, 12.0, 12.1 and 14.0
00401                         0x1b => "ReminderSet", //2.5, 12.0, 12.1 and 14.0
00402                         0x1c => "ReminderTime", //2.5, 12.0, 12.1 and 14.0
00403                         0x1d => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
00404                         0x1e => "StartDate", //2.5, 12.0, 12.1 and 14.0
00405                         0x1f => "UtcStartDate", //2.5, 12.0, 12.1 and 14.0
00406                         0x20 => "Subject", //2.5, 12.0, 12.1 and 14.0
00407                         0x21 => "Rtf", //CompressedRTF //2.5, but is in code page 17 as the Type tag in Active Sync versions 12.0, 12.1, and 14.0
00408                         0x22 => "OrdinalDate", //12.0, 12.1 and 14.0
00409                         0x23 => "SubOrdinalDate", //12.0, 12.1 and 14.0
00410                         0x24 => "CalendarType", //14.0
00411                         0x25 => "IsLeapMonth", //14.0
00412                         0x26 => "FirstDayOfWeek", // first in 20100501 post 14.0
00413                     ),
00414                     0xa => array (
00415                         0x05 => "ResolveRecipients",
00416                         0x06 => "Response",
00417                         0x07 => "Status",
00418                         0x08 => "Type",
00419                         0x09 => "Recipient",
00420                         0x0a => "DisplayName",
00421                         0x0b => "EmailAddress",
00422                         0x0c => "Certificates",
00423                         0x0d => "Certificate",
00424                         0x0e => "MiniCertificate",
00425                         0x0f => "Options",
00426                         0x10 => "To",
00427                         0x11 => "CertificateRetrieval",
00428                         0x12 => "RecipientCount",
00429                         0x13 => "MaxCertificates",
00430                         0x14 => "MaxAmbiguousRecipients",
00431                         0x15 => "CertificateCount",
00432                         0x16 => "Availability", //14.0
00433                         0x17 => "StartTime", //14.0
00434                         0x18 => "EndTime", //14.0
00435                         0x19 => "MergedFreeBusy", //14.0
00436                         0x1A => "Picture", // first in 20100501 post 14.0
00437                         0x1B => "MaxSize", // first in 20100501 post 14.0
00438                         0x1C => "Data", // first in 20100501 post 14.0
00439                         0x1D => "MaxPictures", // first in 20100501 post 14.0
00440                     ),
00441                     0xb => array (
00442                         0x05 => "ValidateCert",
00443                         0x06 => "Certificates",
00444                         0x07 => "Certificate",
00445                         0x08 => "CertificateChain",
00446                         0x09 => "CheckCRL",
00447                         0x0a => "Status",
00448                     ),
00449                     0xc => array (
00450                         0x05 => "CustomerId",
00451                         0x06 => "GovernmentId",
00452                         0x07 => "IMAddress",
00453                         0x08 => "IMAddress2",
00454                         0x09 => "IMAddress3",
00455                         0x0a => "ManagerName",
00456                         0x0b => "CompanyMainPhone",
00457                         0x0c => "AccountName",
00458                         0x0d => "NickName",
00459                         0x0e => "MMS",
00460                     ),
00461                     0xd => array (
00462                         0x05 => "Ping",
00463                         0x06 => "AutdState", //(Not used by protocol)
00464                         0x07 => "Status",
00465                         0x08 => "LifeTime", //HeartbeatInterval
00466                         0x09 => "Folders",
00467                         0x0a => "Folder",
00468                         0x0b => "ServerEntryId", //Id
00469                         0x0c => "FolderType", //Class
00470                         0x0d => "MaxFolders",
00471                         0x0e => "Version" //not defined in 20100501
00472                     ),
00473                     0xe => array (
00474                         0x05 => "Provision", //2.5, 12.0, 12.1 and 14.0
00475                         0x06 => "Policies", //2.5, 12.0, 12.1 and 14.0
00476                         0x07 => "Policy", //2.5, 12.0, 12.1 and 14.0
00477                         0x08 => "PolicyType", //2.5, 12.0, 12.1 and 14.0
00478                         0x09 => "PolicyKey", //2.5, 12.0, 12.1 and 14.0
00479                         0x0A => "Data", //2.5, 12.0, 12.1 and 14.0
00480                         0x0B => "Status", //2.5, 12.0, 12.1 and 14.0
00481                         0x0C => "RemoteWipe", //2.5, 12.0, 12.1 and 14.0
00482                         0x0D => "EASProvisionDoc", //12.0, 12.1 and 14.0
00483                         0x0E => "DevicePasswordEnabled", //12.0, 12.1 and 14.0
00484                         0x0F => "AlphanumericDevicePasswordRequired", //12.0, 12.1 and 14.0
00485                         0x10 => "DeviceEncryptionEnabled", //12.0, 12.1 and 14.0
00486                         //0x10 => "RequireStorageCardEncryption", //12.1 and 14.0
00487                         0x11 => "PasswordRecoveryEnabled", //12.0, 12.1 and 14.0
00488                         0x12 => "DocumentBrowseEnabled", //2.0 and 2.5.
00489                         0x13 => "AttachmentsEnabled", //12.0, 12.1 and 14.0
00490                         0x14 => "MinDevicePasswordLength", //12.0, 12.1 and 14.0
00491                         0x15 => "MaxInactivityTimeDeviceLock", //12.0, 12.1 and 14.0
00492                         0x16 => "MaxDevicePasswordFailedAttempts", //12.0, 12.1 and 14.0
00493                         0x17 => "MaxAttachmentSize", //12.0, 12.1 and 14.0
00494                         0x18 => "AllowSimpleDevicePassword", //12.0, 12.1 and 14.0
00495                         0x19 => "DevicePasswordExpiration", //12.0, 12.1 and 14.0
00496                         0x1A => "DevicePasswordHistory", //12.0, 12.1 and 14.0
00497                         0x1B => "AllowStorageCard", //12.1 and 14.0
00498                         0x1C => "AllowCamera", //12.1 and 14.0
00499                         0x1D => "RequireDeviceEncryption", //12.1 and 14.0
00500                         0x1E => "AllowUnsignedApplications", //12.1 and 14.0
00501                         0x1F => "AllowUnsignedInstallationPackages", //12.1 and 14.0
00502                         0x20 => "MinDevicePasswordComplexCharacters", //12.1 and 14.0
00503                         0x21 => "AllowWiFi", //12.1 and 14.0
00504                         0x22 => "AllowTextMessaging", //12.1 and 14.0
00505                         0x23 => "AllowPOPIMAPEmail", //12.1 and 14.0
00506                         0x24 => "AllowBluetooth", //12.1 and 14.0
00507                         0x25 => "AllowIrDA", //12.1 and 14.0
00508                         0x26 => "RequireManualSyncWhenRoaming", //12.1 and 14.0
00509                         0x27 => "AllowDesktopSync", //12.1 and 14.0
00510                         0x28 => "MaxCalendarAgeFilter", //12.1 and 14.0
00511                         0x29 => "AllowHTMLEmail", //12.1 and 14.0
00512                         0x2A => "MaxEmailAgeFilter", //12.1 and 14.0
00513                         0x2B => "MaxEmailBodyTruncationSize", //12.1 and 14.0
00514                         0x2C => "MaxEmailHTMLBodyTruncationSize", //12.1 and 14.0
00515                         0x2D => "RequireSignedSMIMEMessages", //12.1 and 14.0
00516                         0x2E => "RequireEncryptedSMIMEMessages", //12.1 and 14.0
00517                         0x2F => "RequireSignedSMIMEAlgorithm", //12.1 and 14.0
00518                         0x30 => "RequireEncryptionSMIMEAlgorithm", //12.1 and 14.0
00519                         0x31 => "AllowSMIMEEncryptionAlgorithmNegotiation", //12.1 and 14.0
00520                         0x32 => "AllowSMIMESoftCerts", //12.1 and 14.0
00521                         0x33 => "AllowBrowser", //12.1 and 14.0
00522                         0x34 => "AllowConsumerEmail", //12.1 and 14.0
00523                         0x35 => "AllowRemoteDesktop", //12.1 and 14.0
00524                         0x36 => "AllowInternetSharing", //12.1 and 14.0
00525                         0x37 => "UnapprovedInROMApplicationList", //12.1 and 14.0
00526                         0x38 => "ApplicationName", //12.1 and 14.0
00527                         0x39 => "ApprovedApplicationList", //12.1 and 14.0
00528                         0x3A => "Hash", //12.1 and 14.0
00529                     ),
00530                     0xf => array(
00531                         0x05 => "Search", //12.0, 12.1 and 14.0
00532                         0x07 => "Store", //12.0, 12.1 and 14.0
00533                         0x08 => "Name", //12.0, 12.1 and 14.0
00534                         0x09 => "Query", //12.0, 12.1 and 14.0
00535                         0x0A => "Options", //12.0, 12.1 and 14.0
00536                         0x0B => "Range", //12.0, 12.1 and 14.0
00537                         0x0C => "Status", //12.0, 12.1 and 14.0
00538                         0x0D => "Response", //12.0, 12.1 and 14.0
00539                         0x0E => "Result", //12.0, 12.1 and 14.0
00540                         0x0F => "Properties", //12.0, 12.1 and 14.0
00541                         0x10 => "Total", //12.0, 12.1 and 14.0
00542                         0x11 => "EqualTo", //12.0, 12.1 and 14.0
00543                         0x12 => "Value", //12.0, 12.1 and 14.0
00544                         0x13 => "And", //12.0, 12.1 and 14.0
00545                         0x14 => "Or", //14.0
00546                         0x15 => "FreeText", //12.0, 12.1 and 14.0
00547                         0x17 => "DeepTraversal", //12.0, 12.1 and 14.0
00548                         0x18 => "LongId", //12.0, 12.1 and 14.0
00549                         0x19 => "RebuildResults", //12.0, 12.1 and 14.0
00550                         0x1A => "LessThan", //12.0, 12.1 and 14.0
00551                         0x1B => "GreaterThan", //12.0, 12.1 and 14.0
00552                         0x1C => "Schema", //12.0, 12.1 and 14.0
00553                         0x1D => "Supported", //12.0, 12.1 and 14.0
00554                         0x1E => "UserName", //12.1 and 14.0
00555                         0x1F => "Password", //12.1 and 14.0
00556                         0x20 => "ConversationId", //14.0
00557                         0x21 => "Picture", // first in 20100501 post 14.0
00558                         0x22 => "MaxSize", // first in 20100501 post 14.0
00559                         0x23 => "MaxPictures", // first in 20100501 post 14.0
00560                     ),
00561                     0x10 => array(
00562                         0x05 => "DisplayName",
00563                         0x06 => "Phone",
00564                         0x07 => "Office",
00565                         0x08 => "Title",
00566                         0x09 => "Company",
00567                         0x0A => "Alias",
00568                         0x0B => "FirstName",
00569                         0x0C => "LastName",
00570                         0x0D => "HomePhone",
00571                         0x0E => "MobilePhone",
00572                         0x0F => "EmailAddress",
00573                         0x10 => "Picture", // first in 20100501 post 14.0
00574                         0x11 => "Status", // first in 20100501 post 14.0
00575                         0x12 => "Data", // first in 20100501 post 14.0
00576                     ),
00577                     0x11 => array( //12.0, 12.1 and 14.0
00578                         0x05 => "BodyPreference",
00579                         0x06 => "Type",
00580                         0x07 => "TruncationSize",
00581                         0x08 => "AllOrNone",
00582                         0x0A => "Body",
00583                         0x0B => "Data",
00584                         0x0C => "EstimatedDataSize",
00585                         0x0D => "Truncated",
00586                         0x0E => "Attachments",
00587                         0x0F => "Attachment",
00588                         0x10 => "DisplayName",
00589                         0x11 => "FileReference",
00590                         0x12 => "Method",
00591                         0x13 => "ContentId",
00592                         0x14 => "ContentLocation", //not used
00593                         0x15 => "IsInline",
00594                         0x16 => "NativeBodyType",
00595                         0x17 => "ContentType",
00596                         0x18 => "Preview", //14.0
00597                         0x19 => "BodyPartPreference", // first in 20100501 post 14.0
00598                         0x1A => "BodyPart", // first in 20100501 post 14.0
00599                         0x1B => "Status", // first in 20100501 post 14.0
00600                     ),
00601                     0x12 => array( //12.0, 12.1 and 14.0
00602                         0x05 => "Settings", //12.0, 12.1 and 14.0
00603                         0x06 => "Status", //12.0, 12.1 and 14.0
00604                         0x07 => "Get", //12.0, 12.1 and 14.0
00605                         0x08 => "Set", //12.0, 12.1 and 14.0
00606                         0x09 => "Oof", //12.0, 12.1 and 14.0
00607                         0x0A => "OofState", //12.0, 12.1 and 14.0
00608                         0x0B => "StartTime", //12.0, 12.1 and 14.0
00609                         0x0C => "EndTime", //12.0, 12.1 and 14.0
00610                         0x0D => "OofMessage", //12.0, 12.1 and 14.0
00611                         0x0E => "AppliesToInternal", //12.0, 12.1 and 14.0
00612                         0x0F => "AppliesToExternalKnown", //12.0, 12.1 and 14.0
00613                         0x10 => "AppliesToExternalUnknown", //12.0, 12.1 and 14.0
00614                         0x11 => "Enabled", //12.0, 12.1 and 14.0
00615                         0x12 => "ReplyMessage", //12.0, 12.1 and 14.0
00616                         0x13 => "BodyType", //12.0, 12.1 and 14.0
00617                         0x14 => "DevicePassword", //12.0, 12.1 and 14.0
00618                         0x15 => "Password", //12.0, 12.1 and 14.0
00619                         0x16 => "DeviceInformaton", //12.0, 12.1 and 14.0
00620                         0x17 => "Model", //12.0, 12.1 and 14.0
00621                         0x18 => "IMEI", //12.0, 12.1 and 14.0
00622                         0x19 => "FriendlyName", //12.0, 12.1 and 14.0
00623                         0x1A => "OS", //12.0, 12.1 and 14.0
00624                         0x1B => "OSLanguage", //12.0, 12.1 and 14.0
00625                         0x1C => "PhoneNumber", //12.0, 12.1 and 14.0
00626                         0x1D => "UserInformation", //12.0, 12.1 and 14.0
00627                         0x1E => "EmailAddresses", //12.0, 12.1 and 14.0
00628                         0x1F => "SmtpAddress", //12.0, 12.1 and 14.0
00629                         0x20 => "UserAgent", //12.1 and 14.0
00630                         0x21 => "EnableOutboundSMS", //14.0
00631                         0x22 => "MobileOperator", //14.0
00632                         0x23 => "PrimarySmtpAddress", // first in 20100501 post 14.0
00633                         0x24 => "Accounts", // first in 20100501 post 14.0
00634                         0x25 => "Account", // first in 20100501 post 14.0
00635                         0x26 => "AccountId", // first in 20100501 post 14.0
00636                         0x27 => "AccountName", // first in 20100501 post 14.0
00637                         0x28 => "UserDisplayName", // first in 20100501 post 14.0
00638                         0x29 => "SendDisabled", // first in 20100501 post 14.0
00639                         0x2B => "ihsManagementInformation", // first in 20100501 post 14.0
00640                     ),
00641                     0x13 => array( //12.0, 12.1 and 14.0
00642                         0x05 => "LinkId",
00643                         0x06 => "DisplayName",
00644                         0x07 => "IsFolder",
00645                         0x08 => "CreationDate",
00646                         0x09 => "LastModifiedDate",
00647                         0x0A => "IsHidden",
00648                         0x0B => "ContentLength",
00649                         0x0C => "ContentType",
00650                     ),
00651                     0x14 => array( //12.0, 12.1 and 14.0
00652                         0x05 => "ItemOperations",
00653                         0x06 => "Fetch",
00654                         0x07 => "Store",
00655                         0x08 => "Options",
00656                         0x09 => "Range",
00657                         0x0A => "Total",
00658                         0x0B => "Properties",
00659                         0x0C => "Data",
00660                         0x0D => "Status",
00661                         0x0E => "Response",
00662                         0x0F => "Version",
00663                         0x10 => "Schema",
00664                         0x11 => "Part",
00665                         0x12 => "EmptyFolderContents",
00666                         0x13 => "DeleteSubFolders",
00667                         0x14 => "UserName", //12.1 and 14.0
00668                         0x15 => "Password", //12.1 and 14.0
00669                         0x16 => "Move", //14.0
00670                         0x17 => "DstFldId", //14.0
00671                         0x18 => "ConversationId", //14.0
00672                         0x19 => "MoveAlways", //14.0
00673                     ),
00674                     0x15 => array( //14.0
00675                         0x05 => "SendMail",
00676                         0x06 => "SmartForward",
00677                         0x07 => "SmartReply",
00678                         0x08 => "SaveInSentItems",
00679                         0x09 => "ReplaceMime",
00680                         0x0A => "Type",
00681                         0x0B => "Source",
00682                         0x0C => "FolderId",
00683                         0x0D => "ItemId",
00684                         0x0E => "LongId",
00685                         0x0F => "InstanceId",
00686                         0x10 => "MIME",
00687                         0x11 => "ClientId",
00688                         0x12 => "Status",
00689                         0x13 => "AccountId", // first in 20100501 post 14.0
00690                     ),
00691                     0x16 => array( // 14.0
00692                         0x05 => "UmCallerId",
00693                         0x06 => "UmUserNotes",
00694                         0x07 => "UmAttDuration",
00695                         0x08 => "UmAttOrder",
00696                         0x09 => "ConversationId",
00697                         0x0A => "ConversationIndex",
00698                         0x0B => "LastVerbExecuted",
00699                         0x0C => "LastVerbExecutionTime",
00700                         0x0D => "ReceivedAsBcc",
00701                         0x0E => "Sender",
00702                         0x0F => "CalendarType",
00703                         0x10 => "IsLeapMonth",
00704                         0x11 => "AccountId", // first in 20100501 post 14.0
00705                         0x12 => "FirstDayOfWeek", // first in 20100501 post 14.0
00706                         0x13 => "MeetingMessageType", // first in 20100501 post 14.0
00707                     ),
00708                     0x17 => array( //14.0
00709                         0x05 => "Subject",
00710                         0x06 => "MessageClass",
00711                         0x07 => "LastModifiedDate",
00712                         0x08 => "Categories",
00713                         0x09 => "Category",
00714                     ),
00715                     0x18 => array( // post 14.0
00716                         0x05 => "RightsManagementSupport",
00717                         0x06 => "RightsManagementTemplates",
00718                         0x07 => "RightsManagementTemplate",
00719                         0x08 => "RightsManagementLicense",
00720                         0x09 => "EditAllowed",
00721                         0x0A => "ReplyAllowed",
00722                         0x0B => "ReplyAllAllowed",
00723                         0x0C => "ForwardAllowed",
00724                         0x0D => "ModifyRecipientsAllowed",
00725                         0x0E => "ExtractAllowed",
00726                         0x0F => "PrintAllowed",
00727                         0x10 => "ExportAllowed",
00728                         0x11 => "ProgrammaticAccessAllowed",
00729                         0x12 => "RMOwner",
00730                         0x13 => "ContentExpiryDate",
00731                         0x14 => "TemplateID",
00732                         0x15 => "TemplateName",
00733                         0x16 => "TemplateDescription",
00734                         0x17 => "ContentOwner",
00735                         0x18 => "RemoveRightsManagementDistribution",
00736                     ),
00737               ),
00738               "namespaces" => array(
00739                   //0 => "AirSync", //
00740                   1 => "POOMCONTACTS",
00741                   2 => "POOMMAIL",
00742                   3 => "AirNotify", //no longer used
00743                   4 => "POOMCAL",
00744                   5 => "Move",
00745                   6 => "GetItemEstimate",
00746                   7 => "FolderHierarchy",
00747                   8 => "MeetingResponse",
00748                   9 => "POOMTASKS",
00749                   0xA => "ResolveRecipients",
00750                   0xB => "ValidateCerts",
00751                   0xC => "POOMCONTACTS2",
00752                   0xD => "Ping",
00753                   0xE => "Provision",//
00754                   0xF => "Search",//
00755                   0x10 => "GAL",
00756                   0x11 => "AirSyncBase", //12.0, 12.1 and 14.0
00757                   0x12 => "Settings", //12.0, 12.1 and 14.0.
00758                   0x13 => "DocumentLibrary", //12.0, 12.1 and 14.0
00759                   0x14 => "ItemOperations", //12.0, 12.1 and 14.0
00760                   0x15 => "ComposeMail", //14.0
00761                   0x16 => "POOMMAIL2", //14.0
00762                   0x17 => "Notes", //14.0
00763                   0x18 => "RightsManagement",
00764               )
00765           );
00766 }
00767 
00768 ?>