source: trunk/zpush/lib/wbxml/wbxmldefs.php @ 7589

Revision 7589, 42.1 KB checked in by douglas, 11 years ago (diff)

Ticket #3209 - Integrar módulo de sincronização Z-push ao Expresso

Line 
1<?php
2/***********************************************
3* File      :   wbxmldefs.php
4* Project   :   Z-Push
5* Descr     :   WBXML definitions
6*
7* Created   :   01.10.2007
8*
9* Copyright 2007 - 2012 Zarafa Deutschland GmbH
10*
11* This program is free software: you can redistribute it and/or modify
12* it under the terms of the GNU Affero General Public License, version 3,
13* as published by the Free Software Foundation with the following additional
14* term according to sec. 7:
15*
16* According to sec. 7 of the GNU Affero General Public License, version 3,
17* the terms of the AGPL are supplemented with the following terms:
18*
19* "Zarafa" is a registered trademark of Zarafa B.V.
20* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
21* The licensing of the Program under the AGPL does not imply a trademark license.
22* Therefore any rights, title and interest in our trademarks remain entirely with us.
23*
24* However, if you propagate an unmodified version of the Program you are
25* allowed to use the term "Z-Push" to indicate that you distribute the Program.
26* Furthermore you may use our trademarks where it is necessary to indicate
27* the intended purpose of a product or service provided you use it in accordance
28* with honest practices in industrial or commercial matters.
29* If you want to propagate modified versions of the Program under the name "Z-Push",
30* you may only do so if you have a written permission by Zarafa Deutschland GmbH
31* (to acquire a permission please contact Zarafa at trademark@zarafa.com).
32*
33* This program is distributed in the hope that it will be useful,
34* but WITHOUT ANY WARRANTY; without even the implied warranty of
35* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36* GNU Affero General Public License for more details.
37*
38* You should have received a copy of the GNU Affero General Public License
39* along with this program.  If not, see <http://www.gnu.org/licenses/>.
40*
41* Consult LICENSE file for details
42************************************************/
43
44
45define('WBXML_SWITCH_PAGE',     0x00);
46define('WBXML_END',             0x01);
47define('WBXML_ENTITY',          0x02);
48define('WBXML_STR_I',           0x03);
49define('WBXML_LITERAL',         0x04);
50define('WBXML_EXT_I_0',         0x40);
51define('WBXML_EXT_I_1',         0x41);
52define('WBXML_EXT_I_2',         0x42);
53define('WBXML_PI',              0x43);
54define('WBXML_LITERAL_C',       0x44);
55define('WBXML_EXT_T_0',         0x80);
56define('WBXML_EXT_T_1',         0x81);
57define('WBXML_EXT_T_2',         0x82);
58define('WBXML_STR_T',           0x83);
59define('WBXML_LITERAL_A',       0x84);
60define('WBXML_EXT_0',           0xC0);
61define('WBXML_EXT_1',           0xC1);
62define('WBXML_EXT_2',           0xC2);
63define('WBXML_OPAQUE',          0xC3);
64define('WBXML_LITERAL_AC',      0xC4);
65
66define('EN_TYPE',               1);
67define('EN_TAG',                2);
68define('EN_CONTENT',            3);
69define('EN_FLAGS',              4);
70define('EN_ATTRIBUTES',         5);
71
72define('EN_TYPE_STARTTAG',      1);
73define('EN_TYPE_ENDTAG',        2);
74define('EN_TYPE_CONTENT',       3);
75
76define('EN_FLAGS_CONTENT',      1);
77define('EN_FLAGS_ATTRIBUTES',   2);
78
79class WBXMLDefs {
80    /**
81     * The WBXML DTDs
82     */
83    protected $dtd = array(
84                "codes" => array (
85                    0 => array (
86                        0x05 => "Synchronize",
87                        0x06 => "Replies", //Responses
88                        0x07 => "Add",
89                        0x08 => "Modify", //Change
90                        0x09 => "Remove", //Delete
91                        0x0a => "Fetch",
92                        0x0b => "SyncKey",
93                        0x0c => "ClientEntryId", //ClientId
94                        0x0d => "ServerEntryId", //ServerId
95                        0x0e => "Status",
96                        0x0f => "Folder", //collection
97                        0x10 => "FolderType", //class
98                        0x11 => "Version",
99                        0x12 => "FolderId", //CollectionId
100                        0x13 => "GetChanges",
101                        0x14 => "MoreAvailable",
102                        0x15 => "WindowSize", //WindowSize - MaxItems before z-push 2
103                        0x16 => "Perform", //Commands
104                        0x17 => "Options",
105                        0x18 => "FilterType",
106                        0x19 => "Truncation", //2.0 and 2.5
107                        0x1a => "RtfTruncation", //2.0 and 2.5
108                        0x1b => "Conflict",
109                        0x1c => "Folders", //Collections
110                        0x1d => "Data",
111                        0x1e => "DeletesAsMoves",
112                        0x1f => "NotifyGUID", //2.0 and 2.5
113                        0x20 => "Supported",
114                        0x21 => "SoftDelete",
115                        0x22 => "MIMESupport",
116                        0x23 => "MIMETruncation",
117                        0x24 => "Wait", //12.1 and 14.0
118                        0x25 => "Limit", //12.1 and 14.0
119                        0x26 => "Partial", //12.1 and 14.0
120                        0x27 => "ConversationMode", //14.0
121                        0x28 => "MaxItems", //14.0
122                        0x29 => "HeartbeatInterval", //14.0 Either this tag or the Wait tag can be present, but not both.
123                    ),
124                    1 => array (
125                        0x05 => "Anniversary",
126                        0x06 => "AssistantName",
127                        0x07 => "AssistnamePhoneNumber", //AssistantTelephoneNumber
128                        0x08 => "Birthday",
129                        0x09 => "Body", // 2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0.
130                        0x0a => "BodySize", //2.0 and 2.5
131                        0x0b => "BodyTruncated", //2.0 and 2.5
132                        0x0c => "Business2PhoneNumber",
133                        0x0d => "BusinessCity",
134                        0x0e => "BusinessCountry",
135                        0x0f => "BusinessPostalCode",
136                        0x10 => "BusinessState",
137                        0x11 => "BusinessStreet",
138                        0x12 => "BusinessFaxNumber",
139                        0x13 => "BusinessPhoneNumber",
140                        0x14 => "CarPhoneNumber",
141                        0x15 => "Categories",
142                        0x16 => "Category",
143                        0x17 => "Children",
144                        0x18 => "Child",
145                        0x19 => "CompanyName",
146                        0x1a => "Department",
147                        0x1b => "Email1Address",
148                        0x1c => "Email2Address",
149                        0x1d => "Email3Address",
150                        0x1e => "FileAs",
151                        0x1f => "FirstName",
152                        0x20 => "Home2PhoneNumber",
153                        0x21 => "HomeCity",
154                        0x22 => "HomeCountry",
155                        0x23 => "HomePostalCode",
156                        0x24 => "HomeState",
157                        0x25 => "HomeStreet",
158                        0x26 => "HomeFaxNumber",
159                        0x27 => "HomePhoneNumber",
160                        0x28 => "JobTitle",
161                        0x29 => "LastName",
162                        0x2a => "MiddleName",
163                        0x2b => "MobilePhoneNumber",
164                        0x2c => "OfficeLocation",
165                        0x2d => "OtherCity",
166                        0x2e => "OtherCountry",
167                        0x2f => "OtherPostalCode",
168                        0x30 => "OtherState",
169                        0x31 => "OtherStreet",
170                        0x32 => "PagerNumber",
171                        0x33 => "RadioPhoneNumber",
172                        0x34 => "Spouse",
173                        0x35 => "Suffix",
174                        0x36 => "Title",
175                        0x37 => "WebPage",
176                        0x38 => "YomiCompanyName",
177                        0x39 => "YomiFirstName",
178                        0x3a => "YomiLastName",
179                        0x3b => "Rtf", //CompressedRTF - 2.5
180                        0x3c => "Picture",
181                        0x3d => "Alias", //14.0
182                        0x3e => "WeightedRank" //14.0
183                    ),
184                    2 => array (
185                        0x05 => "Attachment", //2.5, 12.0, 12.1 and 14.0
186                        0x06 => "Attachments", //2.5, 12.0, 12.1 and 14.0
187                        0x07 => "AttName", //2.5, 12.0, 12.1 and 14.0
188                        0x08 => "AttSize",  //2.5, 12.0, 12.1 and 14.0
189                        0x09 => "AttOid",  //2.5, 12.0, 12.1 and 14.0
190                        0x0a => "AttMethod", //2.5, 12.0, 12.1 and 14.0
191                        0x0b => "AttRemoved", //2.5, 12.0, 12.1 and 14.0
192                        0x0c => "Body", // 2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0.
193                        0x0d => "BodySize", //2.5, 12.0, 12.1 and 14.0
194                        0x0e => "BodyTruncated", //2.5, 12.0, 12.1 and 14.0
195                        0x0f => "DateReceived", //2.5, 12.0, 12.1 and 14.0
196                        0x10 => "DisplayName", //2.5, 12.0, 12.1 and 14.0
197                        0x11 => "DisplayTo", //2.5, 12.0, 12.1 and 14.0
198                        0x12 => "Importance", //2.5, 12.0, 12.1 and 14.0
199                        0x13 => "MessageClass", //2.5, 12.0, 12.1 and 14.0
200                        0x14 => "Subject", //2.5, 12.0, 12.1 and 14.0
201                        0x15 => "Read", //2.5, 12.0, 12.1 and 14.0
202                        0x16 => "To", //2.5, 12.0, 12.1 and 14.0
203                        0x17 => "Cc", //2.5, 12.0, 12.1 and 14.0
204                        0x18 => "From", //2.5, 12.0, 12.1 and 14.0
205                        0x19 => "Reply-To", //ReplyTo 2.5, 12.0, 12.1 and 14.0
206                        0x1a => "AllDayEvent", //2.5, 12.0, 12.1 and 14.0
207                        0x1b => "Categories", //2.5, 12.0, 12.1 and 14.0
208                        0x1c => "Category", //2.5, 12.0, 12.1 and 14.0
209                        0x1d => "DtStamp", //2.5, 12.0, 12.1 and 14.0
210                        0x1e => "EndTime", //2.5, 12.0, 12.1 and 14.0
211                        0x1f => "InstanceType", //2.5, 12.0, 12.1 and 14.0
212                        0x20 => "BusyStatus", //2.5, 12.0, 12.1 and 14.0
213                        0x21 => "Location", //2.5, 12.0, 12.1 and 14.0
214                        0x22 => "MeetingRequest", //2.5, 12.0, 12.1 and 14.0
215                        0x23 => "Organizer", //2.5, 12.0, 12.1 and 14.0
216                        0x24 => "RecurrenceId", //2.5, 12.0, 12.1 and 14.0
217                        0x25 => "Reminder", //2.5, 12.0, 12.1 and 14.0
218                        0x26 => "ResponseRequested", //2.5, 12.0, 12.1 and 14.0
219                        0x27 => "Recurrences", //2.5, 12.0, 12.1 and 14.0
220                        0x28 => "Recurrence", //2.5, 12.0, 12.1 and 14.0
221                        0x29 => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
222                        0x2a => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
223                        0x2b => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
224                        0x2c => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
225                        0x2d => "DayOfWeek", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
226                        0x2e => "DayOfMonth", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
227                        0x2f => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
228                        0x30 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
229                        0x31 => "StartTime", //2.5, 12.0, 12.1 and 14.0
230                        0x32 => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
231                        0x33 => "TimeZone", //2.5, 12.0, 12.1 and 14.0
232                        0x34 => "GlobalObjId", //2.5, 12.0, 12.1 and 14.0
233                        0x35 => "ThreadTopic", //2.5, 12.0, 12.1 and 14.0
234                        0x36 => "MIMEData", //2.5
235                        0x37 => "MIMETruncated", //2.5
236                        0x38 => "MIMESize", //2.5
237                        0x39 => "InternetCPID", //2.5, 12.0, 12.1 and 14.0
238                        0x3a => "Flag", //12.0, 12.1 and 14.0
239                        0x3b => "FlagStatus", //12.0, 12.1 and 14.0
240                        0x3c => "ContentClass", //12.0, 12.1 and 14.0
241                        0x3d => "FlagType", //12.0, 12.1 and 14.0
242                        0x3e => "CompleteTime", //14.0
243                        0x3f => "DisallowNewTimeProposal", //14.0
244                    ),
245                    3 => array ( //Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501
246                        0x05 => "Notify",
247                        0x06 => "Notification",
248                        0x07 => "Version",
249                        0x08 => "Lifetime",
250                        0x09 => "DeviceInfo",
251                        0x0a => "Enable",
252                        0x0b => "Folder",
253                        0x0c => "ServerEntryId",
254                        0x0d => "DeviceAddress",
255                        0x0e => "ValidCarrierProfiles",
256                        0x0f => "CarrierProfile",
257                        0x10 => "Status",
258                        0x11 => "Replies",
259//                        0x05 => "Version='1.1'",
260                        0x12 => "Devices",
261                        0x13 => "Device",
262                        0x14 => "Id",
263                        0x15 => "Expiry",
264                        0x16 => "NotifyGUID",
265                    ),
266                    4 => array (
267                        0x05 => "Timezone", //2.5, 12.0, 12.1 and 14.0
268                        0x06 => "AllDayEvent", //2.5, 12.0, 12.1 and 14.0
269                        0x07 => "Attendees", //2.5, 12.0, 12.1 and 14.0
270                        0x08 => "Attendee", //2.5, 12.0, 12.1 and 14.0
271                        0x09 => "Email", //Attendee_Email //2.5, 12.0, 12.1 and 14.0
272                        0x0a => "Name", //Attendee_Name //2.5, 12.0, 12.1 and 14.0
273                        0x0b => "Body", //2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0
274                        0x0c => "BodyTruncated", //2.5, 12.0, 12.1 and 14.0
275                        0x0d => "BusyStatus", //2.5, 12.0, 12.1 and 14.0
276                        0x0e => "Categories", //2.5, 12.0, 12.1 and 14.0
277                        0x0f => "Category", //2.5, 12.0, 12.1 and 14.0
278                        0x10 => "Rtf", //2.5
279                        0x11 => "DtStamp", //2.5, 12.0, 12.1 and 14.0
280                        0x12 => "EndTime", //2.5, 12.0, 12.1 and 14.0
281                        0x13 => "Exception", //2.5, 12.0, 12.1 and 14.0
282                        0x14 => "Exceptions", //2.5, 12.0, 12.1 and 14.0
283                        0x15 => "Deleted", //Exception_Deleted //2.5, 12.0, 12.1 and 14.0
284                        0x16 => "ExceptionStartTime", //Exception_StartTime //2.5, 12.0, 12.1 and 14.0
285                        0x17 => "Location", //2.5, 12.0, 12.1 and 14.0
286                        0x18 => "MeetingStatus", //2.5, 12.0, 12.1 and 14.0
287                        0x19 => "OrganizerEmail", //Organizer_Email //2.5, 12.0, 12.1 and 14.0
288                        0x1a => "OrganizerName", //Organizer_Name //2.5, 12.0, 12.1 and 14.0
289                        0x1b => "Recurrence", //2.5, 12.0, 12.1 and 14.0
290                        0x1c => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
291                        0x1d => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
292                        0x1e => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
293                        0x1f => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
294                        0x20 => "DayOfWeek", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
295                        0x21 => "DayOfMonth", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
296                        0x22 => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
297                        0x23 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
298                        0x24 => "Reminder", //Reminder_MinsBefore //2.5, 12.0, 12.1 and 14.0
299                        0x25 => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
300                        0x26 => "Subject", //2.5, 12.0, 12.1 and 14.0
301                        0x27 => "StartTime", //2.5, 12.0, 12.1 and 14.0
302                        0x28 => "UID", //2.5, 12.0, 12.1 and 14.0
303                        0x29 => "Attendee_Status", //12.0, 12.1 and 14.0
304                        0x2a => "Attendee_Type", //12.0, 12.1 and 14.0
305                        0x2b => "Attachment", //12.0, 12.1 and 14.0
306                        0x2c => "Attachments", //12.0, 12.1 and 14.0
307                        0x2d => "AttName", //12.0, 12.1 and 14.0
308                        0x2e => "AttSize", //12.0, 12.1 and 14.0
309                        0x2f => "AttOid", //12.0, 12.1 and 14.0
310                        0x30 => "AttMethod", //12.0, 12.1 and 14.0
311                        0x31 => "AttRemoved", //12.0, 12.1 and 14.0
312                        0x32 => "DisplayName", //12.0, 12.1 and 14.0
313                        0x33 => "DisallowNewTimeProposal", //14.0
314                        0x34 => "ResponseRequested", //14.0
315                        0x35 => "AppointmentReplyTime", //14.0
316                        0x36 => "ResponseType", //14.0
317                        0x37 => "CalendarType", //14.0
318                        0x38 => "IsLeapMonth", //14.0
319                        0x39 => "FirstDayOfWeek", //post 14.0 20100501
320                        0x3a => "OnlineMeetingInternalLink", //post 14.0 20100501
321                        0x3b => "OnlineMeetingExternalLink", //post 14.0 20120630
322                    ),
323                    5 => array (
324                        0x05 => "Moves",
325                        0x06 => "Move",
326                        0x07 => "SrcMsgId",
327                        0x08 => "SrcFldId",
328                        0x09 => "DstFldId",
329                        0x0a => "Response",
330                        0x0b => "Status",
331                        0x0c => "DstMsgId",
332                    ),
333                    6 => array (
334                        0x05 => "GetItemEstimate",
335                        0x06 => "Version", //only 12.1 20100501
336                        0x07 => "Folders", //Collections
337                        0x08 => "Folder", //Collection
338                        0x09 => "FolderType",   //Class //only 12.1 //The <Class> tag defined in code page 0 should be used in all other instances. 20100501
339                        0x0a => "FolderId", //CollectionId
340                        0x0b => "DateTime", //not supported by 14. only supported 12.1. 20100501
341                        0x0c => "Estimate",
342                        0x0d => "Response",
343                        0x0e => "Status",
344                    ),
345                    7 => array (
346                        0x05 => "Folders", //2.0
347                        0x06 => "Folder", //2.0
348                        0x07 => "DisplayName",
349                        0x08 => "ServerEntryId", //ServerId
350                        0x09 => "ParentId",
351                        0x0a => "Type",
352                        0x0b => "Response", //2.0
353                        0x0c => "Status",
354                        0x0d => "ContentClass", //2.0
355                        0x0e => "Changes",
356                        0x0f => "Add",
357                        0x10 => "Remove",
358                        0x11 => "Update",
359                        0x12 => "SyncKey",
360                        0x13 => "FolderCreate",
361                        0x14 => "FolderDelete",
362                        0x15 => "FolderUpdate",
363                        0x16 => "FolderSync",
364                        0x17 => "Count",
365                        0x18 => "Version", //2.0 - not defined in 20100501
366                    ),
367                    8 => array (
368                        0x05 => "CalendarId",
369                        0x06 => "FolderId", //CollectionId
370                        0x07 => "MeetingResponse",
371                        0x08 => "RequestId",
372                        0x09 => "Request",
373                        0x0a => "Result",
374                        0x0b => "Status",
375                        0x0c => "UserResponse",
376                        0x0d => "Version", //2.0 - not defined in 20100501
377                        0x0e => "InstanceId" // first in 20100501
378                    ),
379                    9 => array (
380                        0x05 => "Body", //2.5, but is in code page 17 in ActiveSync versions 12.0, 12.1, and 14.0
381                        0x06 => "BodySize", //2.5, but is in code page 17 as the EstimatedDataSize tag in ActiveSync versions 12.0, 12.1 and 14.0
382                        0x07 => "BodyTruncated", //2.5, but is in code page 17 as the Truncated tag in ActiveSync versions 12.0, 12.1, and 14.0
383                        0x08 => "Categories", //2.5, 12.0, 12.1 and 14.0
384                        0x09 => "Category", //2.5, 12.0, 12.1 and 14.0
385                        0x0a => "Complete", //2.5, 12.0, 12.1 and 14.0
386                        0x0b => "DateCompleted", //2.5, 12.0, 12.1 and 14.0
387                        0x0c => "DueDate", //2.5, 12.0, 12.1 and 14.0
388                        0x0d => "UtcDueDate", //2.5, 12.0, 12.1 and 14.0
389                        0x0e => "Importance", //2.5, 12.0, 12.1 and 14.0
390                        0x0f => "Recurrence", //2.5, 12.0, 12.1 and 14.0
391                        0x10 => "Type", //Recurrence_Type //2.5, 12.0, 12.1 and 14.0
392                        0x11 => "Start", //Recurrence_Start //2.5, 12.0, 12.1 and 14.0
393                        0x12 => "Until", //Recurrence_Until //2.5, 12.0, 12.1 and 14.0
394                        0x13 => "Occurrences", //Recurrence_Occurrences //2.5, 12.0, 12.1 and 14.0
395                        0x14 => "Interval", //Recurrence_Interval //2.5, 12.0, 12.1 and 14.0
396                        0x16 => "DayOfWeek", //Recurrence_DayOfMonth //2.5, 12.0, 12.1 and 14.0
397                        0x15 => "DayOfMonth", //Recurrence_DayOfWeek //2.5, 12.0, 12.1 and 14.0
398                        0x17 => "WeekOfMonth", //Recurrence_WeekOfMonth //2.5, 12.0, 12.1 and 14.0
399                        0x18 => "MonthOfYear", //Recurrence_MonthOfYear //2.5, 12.0, 12.1 and 14.0
400                        0x19 => "Regenerate", //Recurrence_Regenerate //2.5, 12.0, 12.1 and 14.0
401                        0x1a => "DeadOccur", //Recurrence_DeadOccur //2.5, 12.0, 12.1 and 14.0
402                        0x1b => "ReminderSet", //2.5, 12.0, 12.1 and 14.0
403                        0x1c => "ReminderTime", //2.5, 12.0, 12.1 and 14.0
404                        0x1d => "Sensitivity", //2.5, 12.0, 12.1 and 14.0
405                        0x1e => "StartDate", //2.5, 12.0, 12.1 and 14.0
406                        0x1f => "UtcStartDate", //2.5, 12.0, 12.1 and 14.0
407                        0x20 => "Subject", //2.5, 12.0, 12.1 and 14.0
408                        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
409                        0x22 => "OrdinalDate", //12.0, 12.1 and 14.0
410                        0x23 => "SubOrdinalDate", //12.0, 12.1 and 14.0
411                        0x24 => "CalendarType", //14.0
412                        0x25 => "IsLeapMonth", //14.0
413                        0x26 => "FirstDayOfWeek", // first in 20100501 post 14.0
414                    ),
415                    0xa => array (
416                        0x05 => "ResolveRecipients",
417                        0x06 => "Response",
418                        0x07 => "Status",
419                        0x08 => "Type",
420                        0x09 => "Recipient",
421                        0x0a => "DisplayName",
422                        0x0b => "EmailAddress",
423                        0x0c => "Certificates",
424                        0x0d => "Certificate",
425                        0x0e => "MiniCertificate",
426                        0x0f => "Options",
427                        0x10 => "To",
428                        0x11 => "CertificateRetrieval",
429                        0x12 => "RecipientCount",
430                        0x13 => "MaxCertificates",
431                        0x14 => "MaxAmbiguousRecipients",
432                        0x15 => "CertificateCount",
433                        0x16 => "Availability", //14.0
434                        0x17 => "StartTime", //14.0
435                        0x18 => "EndTime", //14.0
436                        0x19 => "MergedFreeBusy", //14.0
437                        0x1A => "Picture", // first in 20100501 post 14.0
438                        0x1B => "MaxSize", // first in 20100501 post 14.0
439                        0x1C => "Data", // first in 20100501 post 14.0
440                        0x1D => "MaxPictures", // first in 20100501 post 14.0
441                    ),
442                    0xb => array (
443                        0x05 => "ValidateCert",
444                        0x06 => "Certificates",
445                        0x07 => "Certificate",
446                        0x08 => "CertificateChain",
447                        0x09 => "CheckCRL",
448                        0x0a => "Status",
449                    ),
450                    0xc => array (
451                        0x05 => "CustomerId",
452                        0x06 => "GovernmentId",
453                        0x07 => "IMAddress",
454                        0x08 => "IMAddress2",
455                        0x09 => "IMAddress3",
456                        0x0a => "ManagerName",
457                        0x0b => "CompanyMainPhone",
458                        0x0c => "AccountName",
459                        0x0d => "NickName",
460                        0x0e => "MMS",
461                    ),
462                    0xd => array (
463                        0x05 => "Ping",
464                        0x06 => "AutdState", //(Not used by protocol)
465                        0x07 => "Status",
466                        0x08 => "LifeTime", //HeartbeatInterval
467                        0x09 => "Folders",
468                        0x0a => "Folder",
469                        0x0b => "ServerEntryId", //Id
470                        0x0c => "FolderType", //Class
471                        0x0d => "MaxFolders",
472                        0x0e => "Version" //not defined in 20100501
473                    ),
474                    0xe => array (
475                        0x05 => "Provision", //2.5, 12.0, 12.1 and 14.0
476                        0x06 => "Policies", //2.5, 12.0, 12.1 and 14.0
477                        0x07 => "Policy", //2.5, 12.0, 12.1 and 14.0
478                        0x08 => "PolicyType", //2.5, 12.0, 12.1 and 14.0
479                        0x09 => "PolicyKey", //2.5, 12.0, 12.1 and 14.0
480                        0x0A => "Data", //2.5, 12.0, 12.1 and 14.0
481                        0x0B => "Status", //2.5, 12.0, 12.1 and 14.0
482                        0x0C => "RemoteWipe", //2.5, 12.0, 12.1 and 14.0
483                        0x0D => "EASProvisionDoc", //12.0, 12.1 and 14.0
484                        0x0E => "DevicePasswordEnabled", //12.0, 12.1 and 14.0
485                        0x0F => "AlphanumericDevicePasswordRequired", //12.0, 12.1 and 14.0
486                        0x10 => "DeviceEncryptionEnabled", //12.0, 12.1 and 14.0
487                        //0x10 => "RequireStorageCardEncryption", //12.1 and 14.0
488                        0x11 => "PasswordRecoveryEnabled", //12.0, 12.1 and 14.0
489                        0x12 => "DocumentBrowseEnabled", //2.0 and 2.5.
490                        0x13 => "AttachmentsEnabled", //12.0, 12.1 and 14.0
491                        0x14 => "MinDevicePasswordLength", //12.0, 12.1 and 14.0
492                        0x15 => "MaxInactivityTimeDeviceLock", //12.0, 12.1 and 14.0
493                        0x16 => "MaxDevicePasswordFailedAttempts", //12.0, 12.1 and 14.0
494                        0x17 => "MaxAttachmentSize", //12.0, 12.1 and 14.0
495                        0x18 => "AllowSimpleDevicePassword", //12.0, 12.1 and 14.0
496                        0x19 => "DevicePasswordExpiration", //12.0, 12.1 and 14.0
497                        0x1A => "DevicePasswordHistory", //12.0, 12.1 and 14.0
498                        0x1B => "AllowStorageCard", //12.1 and 14.0
499                        0x1C => "AllowCamera", //12.1 and 14.0
500                        0x1D => "RequireDeviceEncryption", //12.1 and 14.0
501                        0x1E => "AllowUnsignedApplications", //12.1 and 14.0
502                        0x1F => "AllowUnsignedInstallationPackages", //12.1 and 14.0
503                        0x20 => "MinDevicePasswordComplexCharacters", //12.1 and 14.0
504                        0x21 => "AllowWiFi", //12.1 and 14.0
505                        0x22 => "AllowTextMessaging", //12.1 and 14.0
506                        0x23 => "AllowPOPIMAPEmail", //12.1 and 14.0
507                        0x24 => "AllowBluetooth", //12.1 and 14.0
508                        0x25 => "AllowIrDA", //12.1 and 14.0
509                        0x26 => "RequireManualSyncWhenRoaming", //12.1 and 14.0
510                        0x27 => "AllowDesktopSync", //12.1 and 14.0
511                        0x28 => "MaxCalendarAgeFilter", //12.1 and 14.0
512                        0x29 => "AllowHTMLEmail", //12.1 and 14.0
513                        0x2A => "MaxEmailAgeFilter", //12.1 and 14.0
514                        0x2B => "MaxEmailBodyTruncationSize", //12.1 and 14.0
515                        0x2C => "MaxEmailHTMLBodyTruncationSize", //12.1 and 14.0
516                        0x2D => "RequireSignedSMIMEMessages", //12.1 and 14.0
517                        0x2E => "RequireEncryptedSMIMEMessages", //12.1 and 14.0
518                        0x2F => "RequireSignedSMIMEAlgorithm", //12.1 and 14.0
519                        0x30 => "RequireEncryptionSMIMEAlgorithm", //12.1 and 14.0
520                        0x31 => "AllowSMIMEEncryptionAlgorithmNegotiation", //12.1 and 14.0
521                        0x32 => "AllowSMIMESoftCerts", //12.1 and 14.0
522                        0x33 => "AllowBrowser", //12.1 and 14.0
523                        0x34 => "AllowConsumerEmail", //12.1 and 14.0
524                        0x35 => "AllowRemoteDesktop", //12.1 and 14.0
525                        0x36 => "AllowInternetSharing", //12.1 and 14.0
526                        0x37 => "UnapprovedInROMApplicationList", //12.1 and 14.0
527                        0x38 => "ApplicationName", //12.1 and 14.0
528                        0x39 => "ApprovedApplicationList", //12.1 and 14.0
529                        0x3A => "Hash", //12.1 and 14.0
530                    ),
531                    0xf => array(
532                        0x05 => "Search", //12.0, 12.1 and 14.0
533                        0x07 => "Store", //12.0, 12.1 and 14.0
534                        0x08 => "Name", //12.0, 12.1 and 14.0
535                        0x09 => "Query", //12.0, 12.1 and 14.0
536                        0x0A => "Options", //12.0, 12.1 and 14.0
537                        0x0B => "Range", //12.0, 12.1 and 14.0
538                        0x0C => "Status", //12.0, 12.1 and 14.0
539                        0x0D => "Response", //12.0, 12.1 and 14.0
540                        0x0E => "Result", //12.0, 12.1 and 14.0
541                        0x0F => "Properties", //12.0, 12.1 and 14.0
542                        0x10 => "Total", //12.0, 12.1 and 14.0
543                        0x11 => "EqualTo", //12.0, 12.1 and 14.0
544                        0x12 => "Value", //12.0, 12.1 and 14.0
545                        0x13 => "And", //12.0, 12.1 and 14.0
546                        0x14 => "Or", //14.0
547                        0x15 => "FreeText", //12.0, 12.1 and 14.0
548                        0x17 => "DeepTraversal", //12.0, 12.1 and 14.0
549                        0x18 => "LongId", //12.0, 12.1 and 14.0
550                        0x19 => "RebuildResults", //12.0, 12.1 and 14.0
551                        0x1A => "LessThan", //12.0, 12.1 and 14.0
552                        0x1B => "GreaterThan", //12.0, 12.1 and 14.0
553                        0x1C => "Schema", //12.0, 12.1 and 14.0
554                        0x1D => "Supported", //12.0, 12.1 and 14.0
555                        0x1E => "UserName", //12.1 and 14.0
556                        0x1F => "Password", //12.1 and 14.0
557                        0x20 => "ConversationId", //14.0
558                        0x21 => "Picture", // first in 20100501 post 14.0
559                        0x22 => "MaxSize", // first in 20100501 post 14.0
560                        0x23 => "MaxPictures", // first in 20100501 post 14.0
561                    ),
562                    0x10 => array(
563                        0x05 => "DisplayName",
564                        0x06 => "Phone",
565                        0x07 => "Office",
566                        0x08 => "Title",
567                        0x09 => "Company",
568                        0x0A => "Alias",
569                        0x0B => "FirstName",
570                        0x0C => "LastName",
571                        0x0D => "HomePhone",
572                        0x0E => "MobilePhone",
573                        0x0F => "EmailAddress",
574                        0x10 => "Picture", // first in 20100501 post 14.0
575                        0x11 => "Status", // first in 20100501 post 14.0
576                        0x12 => "Data", // first in 20100501 post 14.0
577                    ),
578                    0x11 => array( //12.0, 12.1 and 14.0
579                        0x05 => "BodyPreference",
580                        0x06 => "Type",
581                        0x07 => "TruncationSize",
582                        0x08 => "AllOrNone",
583                        0x0A => "Body",
584                        0x0B => "Data",
585                        0x0C => "EstimatedDataSize",
586                        0x0D => "Truncated",
587                        0x0E => "Attachments",
588                        0x0F => "Attachment",
589                        0x10 => "DisplayName",
590                        0x11 => "FileReference",
591                        0x12 => "Method",
592                        0x13 => "ContentId",
593                        0x14 => "ContentLocation", //not used
594                        0x15 => "IsInline",
595                        0x16 => "NativeBodyType",
596                        0x17 => "ContentType",
597                        0x18 => "Preview", //14.0
598                        0x19 => "BodyPartPreference", // first in 20100501 post 14.0
599                        0x1A => "BodyPart", // first in 20100501 post 14.0
600                        0x1B => "Status", // first in 20100501 post 14.0
601                    ),
602                    0x12 => array( //12.0, 12.1 and 14.0
603                        0x05 => "Settings", //12.0, 12.1 and 14.0
604                        0x06 => "Status", //12.0, 12.1 and 14.0
605                        0x07 => "Get", //12.0, 12.1 and 14.0
606                        0x08 => "Set", //12.0, 12.1 and 14.0
607                        0x09 => "Oof", //12.0, 12.1 and 14.0
608                        0x0A => "OofState", //12.0, 12.1 and 14.0
609                        0x0B => "StartTime", //12.0, 12.1 and 14.0
610                        0x0C => "EndTime", //12.0, 12.1 and 14.0
611                        0x0D => "OofMessage", //12.0, 12.1 and 14.0
612                        0x0E => "AppliesToInternal", //12.0, 12.1 and 14.0
613                        0x0F => "AppliesToExternalKnown", //12.0, 12.1 and 14.0
614                        0x10 => "AppliesToExternalUnknown", //12.0, 12.1 and 14.0
615                        0x11 => "Enabled", //12.0, 12.1 and 14.0
616                        0x12 => "ReplyMessage", //12.0, 12.1 and 14.0
617                        0x13 => "BodyType", //12.0, 12.1 and 14.0
618                        0x14 => "DevicePassword", //12.0, 12.1 and 14.0
619                        0x15 => "Password", //12.0, 12.1 and 14.0
620                        0x16 => "DeviceInformaton", //12.0, 12.1 and 14.0
621                        0x17 => "Model", //12.0, 12.1 and 14.0
622                        0x18 => "IMEI", //12.0, 12.1 and 14.0
623                        0x19 => "FriendlyName", //12.0, 12.1 and 14.0
624                        0x1A => "OS", //12.0, 12.1 and 14.0
625                        0x1B => "OSLanguage", //12.0, 12.1 and 14.0
626                        0x1C => "PhoneNumber", //12.0, 12.1 and 14.0
627                        0x1D => "UserInformation", //12.0, 12.1 and 14.0
628                        0x1E => "EmailAddresses", //12.0, 12.1 and 14.0
629                        0x1F => "SmtpAddress", //12.0, 12.1 and 14.0
630                        0x20 => "UserAgent", //12.1 and 14.0
631                        0x21 => "EnableOutboundSMS", //14.0
632                        0x22 => "MobileOperator", //14.0
633                        0x23 => "PrimarySmtpAddress", // first in 20100501 post 14.0
634                        0x24 => "Accounts", // first in 20100501 post 14.0
635                        0x25 => "Account", // first in 20100501 post 14.0
636                        0x26 => "AccountId", // first in 20100501 post 14.0
637                        0x27 => "AccountName", // first in 20100501 post 14.0
638                        0x28 => "UserDisplayName", // first in 20100501 post 14.0
639                        0x29 => "SendDisabled", // first in 20100501 post 14.0
640                        0x2B => "ihsManagementInformation", // first in 20100501 post 14.0
641                    ),
642                    0x13 => array( //12.0, 12.1 and 14.0
643                        0x05 => "LinkId",
644                        0x06 => "DisplayName",
645                        0x07 => "IsFolder",
646                        0x08 => "CreationDate",
647                        0x09 => "LastModifiedDate",
648                        0x0A => "IsHidden",
649                        0x0B => "ContentLength",
650                        0x0C => "ContentType",
651                    ),
652                    0x14 => array( //12.0, 12.1 and 14.0
653                        0x05 => "ItemOperations",
654                        0x06 => "Fetch",
655                        0x07 => "Store",
656                        0x08 => "Options",
657                        0x09 => "Range",
658                        0x0A => "Total",
659                        0x0B => "Properties",
660                        0x0C => "Data",
661                        0x0D => "Status",
662                        0x0E => "Response",
663                        0x0F => "Version",
664                        0x10 => "Schema",
665                        0x11 => "Part",
666                        0x12 => "EmptyFolderContents",
667                        0x13 => "DeleteSubFolders",
668                        0x14 => "UserName", //12.1 and 14.0
669                        0x15 => "Password", //12.1 and 14.0
670                        0x16 => "Move", //14.0
671                        0x17 => "DstFldId", //14.0
672                        0x18 => "ConversationId", //14.0
673                        0x19 => "MoveAlways", //14.0
674                    ),
675                    0x15 => array( //14.0
676                        0x05 => "SendMail",
677                        0x06 => "SmartForward",
678                        0x07 => "SmartReply",
679                        0x08 => "SaveInSentItems",
680                        0x09 => "ReplaceMime",
681                        0x0A => "Type",
682                        0x0B => "Source",
683                        0x0C => "FolderId",
684                        0x0D => "ItemId",
685                        0x0E => "LongId",
686                        0x0F => "InstanceId",
687                        0x10 => "MIME",
688                        0x11 => "ClientId",
689                        0x12 => "Status",
690                        0x13 => "AccountId", // first in 20100501 post 14.0
691                    ),
692                    0x16 => array( // 14.0
693                        0x05 => "UmCallerId",
694                        0x06 => "UmUserNotes",
695                        0x07 => "UmAttDuration",
696                        0x08 => "UmAttOrder",
697                        0x09 => "ConversationId",
698                        0x0A => "ConversationIndex",
699                        0x0B => "LastVerbExecuted",
700                        0x0C => "LastVerbExecutionTime",
701                        0x0D => "ReceivedAsBcc",
702                        0x0E => "Sender",
703                        0x0F => "CalendarType",
704                        0x10 => "IsLeapMonth",
705                        0x11 => "AccountId", // first in 20100501 post 14.0
706                        0x12 => "FirstDayOfWeek", // first in 20100501 post 14.0
707                        0x13 => "MeetingMessageType", // first in 20100501 post 14.0
708                    ),
709                    0x17 => array( //14.0
710                        0x05 => "Subject",
711                        0x06 => "MessageClass",
712                        0x07 => "LastModifiedDate",
713                        0x08 => "Categories",
714                        0x09 => "Category",
715                    ),
716                    0x18 => array( // post 14.0
717                        0x05 => "RightsManagementSupport",
718                        0x06 => "RightsManagementTemplates",
719                        0x07 => "RightsManagementTemplate",
720                        0x08 => "RightsManagementLicense",
721                        0x09 => "EditAllowed",
722                        0x0A => "ReplyAllowed",
723                        0x0B => "ReplyAllAllowed",
724                        0x0C => "ForwardAllowed",
725                        0x0D => "ModifyRecipientsAllowed",
726                        0x0E => "ExtractAllowed",
727                        0x0F => "PrintAllowed",
728                        0x10 => "ExportAllowed",
729                        0x11 => "ProgrammaticAccessAllowed",
730                        0x12 => "RMOwner",
731                        0x13 => "ContentExpiryDate",
732                        0x14 => "TemplateID",
733                        0x15 => "TemplateName",
734                        0x16 => "TemplateDescription",
735                        0x17 => "ContentOwner",
736                        0x18 => "RemoveRightsManagementDistribution",
737                    ),
738              ),
739              "namespaces" => array(
740                  //0 => "AirSync", //
741                  1 => "POOMCONTACTS",
742                  2 => "POOMMAIL",
743                  3 => "AirNotify", //no longer used
744                  4 => "POOMCAL",
745                  5 => "Move",
746                  6 => "GetItemEstimate",
747                  7 => "FolderHierarchy",
748                  8 => "MeetingResponse",
749                  9 => "POOMTASKS",
750                  0xA => "ResolveRecipients",
751                  0xB => "ValidateCerts",
752                  0xC => "POOMCONTACTS2",
753                  0xD => "Ping",
754                  0xE => "Provision",//
755                  0xF => "Search",//
756                  0x10 => "GAL",
757                  0x11 => "AirSyncBase", //12.0, 12.1 and 14.0
758                  0x12 => "Settings", //12.0, 12.1 and 14.0.
759                  0x13 => "DocumentLibrary", //12.0, 12.1 and 14.0
760                  0x14 => "ItemOperations", //12.0, 12.1 and 14.0
761                  0x15 => "ComposeMail", //14.0
762                  0x16 => "POOMMAIL2", //14.0
763                  0x17 => "Notes", //14.0
764                  0x18 => "RightsManagement",
765              )
766          );
767}
768
769?>
Note: See TracBrowser for help on using the repository browser.