@@ -218,7 +218,7 @@ |
||
218 | 218 | ], |
219 | 219 | ], // EXISTS OR |
220 | 220 | ], |
221 | - ]; // global OR |
|
221 | + ]; // global OR |
|
222 | 222 | |
223 | 223 | $contents = mapi_folder_getcontentstable($this->calendar); |
224 | 224 | mapi_table_restrict($contents, $restrict); |
@@ -16,40 +16,40 @@ discard block |
||
16 | 16 | |
17 | 17 | /* Object type */ |
18 | 18 | |
19 | -define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
20 | -define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
21 | -define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
22 | -define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
23 | -define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
24 | -define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
25 | -define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
26 | -define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
27 | -define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
28 | -define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
29 | -define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
30 | -define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
19 | +define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
20 | +define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
21 | +define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
22 | +define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
23 | +define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
24 | +define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
25 | +define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
26 | +define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
27 | +define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
28 | +define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
29 | +define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
30 | +define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
31 | 31 | |
32 | 32 | define('MV_FLAG', 0x1000); |
33 | 33 | define('MV_INSTANCE', 0x2000); |
34 | -define('MVI_FLAG', MV_FLAG | MV_INSTANCE); |
|
35 | - |
|
36 | -define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
37 | -define('PT_NULL', 1); /* NULL property value */ |
|
38 | -define('PT_I2', 2); /* Signed 16-bit value */ |
|
39 | -define('PT_LONG', 3); /* Signed 32-bit value */ |
|
40 | -define('PT_R4', 4); /* 4-byte floating point */ |
|
41 | -define('PT_DOUBLE', 5); /* Floating point double */ |
|
42 | -define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
43 | -define('PT_APPTIME', 7); /* Application time */ |
|
44 | -define('PT_ERROR', 10); /* 32-bit error value */ |
|
45 | -define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
46 | -define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
47 | -define('PT_I8', 20); /* 8-byte signed integer */ |
|
48 | -define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
49 | -define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
50 | -define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
51 | -define('PT_CLSID', 72); /* OLE GUID */ |
|
52 | -define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
34 | +define('MVI_FLAG', MV_FLAG|MV_INSTANCE); |
|
35 | + |
|
36 | +define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
37 | +define('PT_NULL', 1); /* NULL property value */ |
|
38 | +define('PT_I2', 2); /* Signed 16-bit value */ |
|
39 | +define('PT_LONG', 3); /* Signed 32-bit value */ |
|
40 | +define('PT_R4', 4); /* 4-byte floating point */ |
|
41 | +define('PT_DOUBLE', 5); /* Floating point double */ |
|
42 | +define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
43 | +define('PT_APPTIME', 7); /* Application time */ |
|
44 | +define('PT_ERROR', 10); /* 32-bit error value */ |
|
45 | +define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
46 | +define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
47 | +define('PT_I8', 20); /* 8-byte signed integer */ |
|
48 | +define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
49 | +define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
50 | +define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
51 | +define('PT_CLSID', 72); /* OLE GUID */ |
|
52 | +define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
53 | 53 | /* Changes are likely to these numbers, and to their structures. */ |
54 | 54 | |
55 | 55 | /* Alternate property type names for ease of use */ |
@@ -61,18 +61,18 @@ discard block |
||
61 | 61 | |
62 | 62 | define('PT_TSTRING', PT_STRING8); |
63 | 63 | |
64 | -define('PT_MV_I2', (MV_FLAG | PT_I2)); |
|
65 | -define('PT_MV_LONG', (MV_FLAG | PT_LONG)); |
|
66 | -define('PT_MV_R4', (MV_FLAG | PT_R4)); |
|
67 | -define('PT_MV_DOUBLE', (MV_FLAG | PT_DOUBLE)); |
|
68 | -define('PT_MV_CURRENCY', (MV_FLAG | PT_CURRENCY)); |
|
69 | -define('PT_MV_APPTIME', (MV_FLAG | PT_APPTIME)); |
|
70 | -define('PT_MV_SYSTIME', (MV_FLAG | PT_SYSTIME)); |
|
71 | -define('PT_MV_STRING8', (MV_FLAG | PT_STRING8)); |
|
72 | -define('PT_MV_BINARY', (MV_FLAG | PT_BINARY)); |
|
73 | -define('PT_MV_UNICODE', (MV_FLAG | PT_UNICODE)); |
|
74 | -define('PT_MV_CLSID', (MV_FLAG | PT_CLSID)); |
|
75 | -define('PT_MV_I8', (MV_FLAG | PT_I8)); |
|
64 | +define('PT_MV_I2', (MV_FLAG|PT_I2)); |
|
65 | +define('PT_MV_LONG', (MV_FLAG|PT_LONG)); |
|
66 | +define('PT_MV_R4', (MV_FLAG|PT_R4)); |
|
67 | +define('PT_MV_DOUBLE', (MV_FLAG|PT_DOUBLE)); |
|
68 | +define('PT_MV_CURRENCY', (MV_FLAG|PT_CURRENCY)); |
|
69 | +define('PT_MV_APPTIME', (MV_FLAG|PT_APPTIME)); |
|
70 | +define('PT_MV_SYSTIME', (MV_FLAG|PT_SYSTIME)); |
|
71 | +define('PT_MV_STRING8', (MV_FLAG|PT_STRING8)); |
|
72 | +define('PT_MV_BINARY', (MV_FLAG|PT_BINARY)); |
|
73 | +define('PT_MV_UNICODE', (MV_FLAG|PT_UNICODE)); |
|
74 | +define('PT_MV_CLSID', (MV_FLAG|PT_CLSID)); |
|
75 | +define('PT_MV_I8', (MV_FLAG|PT_I8)); |
|
76 | 76 | |
77 | 77 | define('PT_MV_TSTRING', PT_MV_STRING8); |
78 | 78 | /* bit 0: set if descending, clear if ascending */ |
@@ -190,14 +190,14 @@ discard block |
||
190 | 190 | |
191 | 191 | /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */ |
192 | 192 | |
193 | -define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
194 | -define('MAPI_AB', 34); /* Address Book */ |
|
195 | -define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
196 | -define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
197 | -define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
198 | -define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
199 | -define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
200 | -define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
193 | +define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
194 | +define('MAPI_AB', 34); /* Address Book */ |
|
195 | +define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
196 | +define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
197 | +define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
198 | +define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
199 | +define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
200 | +define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
201 | 201 | define('STATUS_VALIDATE_STATE', 0x00000001); |
202 | 202 | define('STATUS_SETTINGS_DIALOG', 0x00000002); |
203 | 203 | define('STATUS_CHANGE_PASSWORD', 0x00000004); |
@@ -243,10 +243,10 @@ discard block |
||
243 | 243 | define('MODRECIP_MODIFY', 0x00000004); |
244 | 244 | define('MODRECIP_REMOVE', 0x00000008); |
245 | 245 | |
246 | -define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
247 | -define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
248 | -define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
249 | -define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
246 | +define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
247 | +define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
248 | +define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
249 | +define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
250 | 250 | |
251 | 251 | /* IAttach Interface ------------------------------------------------------- */ |
252 | 252 | |
@@ -438,23 +438,23 @@ discard block |
||
438 | 438 | define('BMR_NEZ', 0x00000001); |
439 | 439 | |
440 | 440 | /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */ |
441 | -define('VALUE', 0); // propval |
|
442 | -define('RELOP', 1); // compare method |
|
443 | -define('FUZZYLEVEL', 2); // string search flags |
|
444 | -define('CB', 3); // size restriction |
|
445 | -define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
446 | -define('ULMASK', 5); // bitmask |
|
447 | -define('ULPROPTAG', 6); // property |
|
448 | -define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
449 | -define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
450 | -define('PROPS', 9); // RES_COMMENT properties |
|
451 | -define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
441 | +define('VALUE', 0); // propval |
|
442 | +define('RELOP', 1); // compare method |
|
443 | +define('FUZZYLEVEL', 2); // string search flags |
|
444 | +define('CB', 3); // size restriction |
|
445 | +define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
446 | +define('ULMASK', 5); // bitmask |
|
447 | +define('ULPROPTAG', 6); // property |
|
448 | +define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
449 | +define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
450 | +define('PROPS', 9); // RES_COMMENT properties |
|
451 | +define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
452 | 452 | |
453 | 453 | /* GUID's for PR_MDB_PROVIDER */ |
454 | -define("ZARAFA_SERVICE_GUID", makeGuid("{3C253DCA-D227-443C-94FE-425FAB958C19}")); // default store |
|
455 | -define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
456 | -define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}")); // other store |
|
457 | -define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
454 | +define("ZARAFA_SERVICE_GUID", makeGuid("{3C253DCA-D227-443C-94FE-425FAB958C19}")); // default store |
|
455 | +define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
456 | +define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}")); // other store |
|
457 | +define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
458 | 458 | |
459 | 459 | /* global profile section guid */ |
460 | 460 | define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}")); |
@@ -481,10 +481,10 @@ discard block |
||
481 | 481 | // define('ecrightsContact' ,0x00000200); |
482 | 482 | define('ecRightsFolderVisible', 0x00000400); |
483 | 483 | |
484 | -define('ecRightsAll', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderAccess | ecRightsFolderVisible); |
|
485 | -define('ecRightsFullControl', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderVisible); |
|
486 | -define('ecRightsDefault', ecRightsNone | ecRightsFolderVisible); |
|
487 | -define('ecRightsDefaultPublic', ecRightsReadAny | ecRightsFolderVisible); |
|
484 | +define('ecRightsAll', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderAccess|ecRightsFolderVisible); |
|
485 | +define('ecRightsFullControl', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderVisible); |
|
486 | +define('ecRightsDefault', ecRightsNone|ecRightsFolderVisible); |
|
487 | +define('ecRightsDefaultPublic', ecRightsReadAny|ecRightsFolderVisible); |
|
488 | 488 | define('ecRightsAdmin', 0x00001000); |
489 | 489 | define('ecRightsAllMask', 0x000015FB); |
490 | 490 | |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | define('ROW_ADD', 0x0001); |
501 | 501 | define('ROW_MODIFY', 0x0002); |
502 | 502 | define('ROW_REMOVE', 0x0004); |
503 | -define('ROW_EMPTY', (ROW_ADD | ROW_REMOVE)); |
|
503 | +define('ROW_EMPTY', (ROW_ADD|ROW_REMOVE)); |
|
504 | 504 | |
505 | 505 | // new property types |
506 | 506 | define('PT_SRESTRICTION', 0x00FD); |
@@ -570,38 +570,38 @@ discard block |
||
570 | 570 | define('SYNC_NO_FOREIGN_KEYS', 0x100); |
571 | 571 | define('SYNC_LIMITED_IMESSAGE', 0x200); |
572 | 572 | define('SYNC_CATCHUP', 0x400); |
573 | -define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
574 | -define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
573 | +define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
574 | +define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
575 | 575 | define('SYNC_BEST_BODY', 0x2000); |
576 | 576 | define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000); |
577 | -define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
577 | +define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
578 | 578 | define('SYNC_FXRECOVERMODE', 0x10000); |
579 | 579 | define('SYNC_DEFER_CONFIG', 0x20000); |
580 | -define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
581 | -define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
580 | +define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
581 | +define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
582 | 582 | |
583 | -define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
583 | +define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
584 | 584 | |
585 | -define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
585 | +define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
586 | 586 | |
587 | 587 | /* Flags for recipients in exceptions */ |
588 | -define('recipSendable', 0x00000001); // sendable attendee. |
|
589 | -define('recipOrganizer', 0x00000002); // meeting organizer |
|
590 | -define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
591 | -define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
592 | -define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
588 | +define('recipSendable', 0x00000001); // sendable attendee. |
|
589 | +define('recipOrganizer', 0x00000002); // meeting organizer |
|
590 | +define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
591 | +define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
592 | +define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
593 | 593 | define('recipReserved', 0x00000200); |
594 | 594 | |
595 | 595 | /* Flags which indicates type of Meeting Object */ |
596 | -define('mtgEmpty', 0x00000000); // Unspecified. |
|
597 | -define('mtgRequest', 0x00000001); // Initial meeting request. |
|
598 | -define('mtgFull', 0x00010000); // Full update. |
|
599 | -define('mtgInfo', 0x00020000); // Informational update. |
|
600 | -define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
601 | -define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
602 | - |
|
603 | -define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
604 | -define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
596 | +define('mtgEmpty', 0x00000000); // Unspecified. |
|
597 | +define('mtgRequest', 0x00000001); // Initial meeting request. |
|
598 | +define('mtgFull', 0x00010000); // Full update. |
|
599 | +define('mtgInfo', 0x00020000); // Informational update. |
|
600 | +define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
601 | +define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
602 | + |
|
603 | +define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
604 | +define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
605 | 605 | |
606 | 606 | /* Mask flags for mapi_msgstore_advise */ |
607 | 607 | define('fnevCriticalError', 0x00000001); |
@@ -236,7 +236,7 @@ |
||
236 | 236 | self::STREAMER_VAR => "unapprovedinromapplist", |
237 | 237 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY, |
238 | 238 | self::STREAMER_ARRAY => SYNC_PROVISION_APPNAME, |
239 | - ], // TODO check |
|
239 | + ], // TODO check |
|
240 | 240 | SYNC_PROVISION_APPROVEDAPPLIST => [ |
241 | 241 | self::STREAMER_VAR => "approvedapplist", |
242 | 242 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY, |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | ], |
143 | 143 | ], // EXISTS OR |
144 | 144 | ], |
145 | - ]; // global OR |
|
145 | + ]; // global OR |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | [ |
179 | 179 | RES_CONTENT, |
180 | 180 | [ |
181 | - FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
181 | + FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
182 | 182 | ULPROPTAG => PR_DISPLAY_NAME, |
183 | 183 | VALUE => $query, |
184 | 184 | ], |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | [ |
187 | 187 | RES_CONTENT, |
188 | 188 | [ |
189 | - FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
189 | + FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
190 | 190 | ULPROPTAG => PR_ACCOUNT, |
191 | 191 | VALUE => $query, |
192 | 192 | ], |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | [ |
195 | 195 | RES_CONTENT, |
196 | 196 | [ |
197 | - FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
197 | + FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
198 | 198 | ULPROPTAG => PR_SMTP_ADDRESS, |
199 | 199 | VALUE => $query, |
200 | 200 | ], |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | PR_SENT_REPRESENTING_ENTRYID => $props[PR_SENT_REPRESENTING_ENTRYID], |
679 | 679 | PR_SENT_REPRESENTING_SEARCH_KEY => $props[PR_SENT_REPRESENTING_SEARCH_KEY], |
680 | 680 | // mark the message as read if the main message has read flag |
681 | - PR_MESSAGE_FLAGS => $read ? $mprops[PR_MESSAGE_FLAGS] | MSGFLAG_READ : $mprops[PR_MESSAGE_FLAGS], |
|
681 | + PR_MESSAGE_FLAGS => $read ? $mprops[PR_MESSAGE_FLAGS]|MSGFLAG_READ : $mprops[PR_MESSAGE_FLAGS], |
|
682 | 682 | ]); |
683 | 683 | } |
684 | 684 | // TODO check if we need to do this for encrypted (and signed?) message as well |
@@ -749,13 +749,13 @@ discard block |
||
749 | 749 | $entryId = strtoupper($entryid); |
750 | 750 | |
751 | 751 | $res = [ |
752 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
753 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
754 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
755 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
756 | - 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
757 | - 'server' => '', // CHAR, variable length |
|
758 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
752 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
753 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
754 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
755 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
756 | + 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
757 | + 'server' => '', // CHAR, variable length |
|
758 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
759 | 759 | ]; |
760 | 760 | |
761 | 761 | $res['length'] = strlen($entryId); |
@@ -800,13 +800,13 @@ discard block |
||
800 | 800 | $entryId = strtoupper($entryid); |
801 | 801 | |
802 | 802 | $res = [ |
803 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
804 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
805 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
806 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
807 | - 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
808 | - 'server' => '', // CHAR, variable length |
|
809 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
803 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
804 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
805 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
806 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
807 | + 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
808 | + 'server' => '', // CHAR, variable length |
|
809 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
810 | 810 | ]; |
811 | 811 | |
812 | 812 | $res['length'] = strlen($entryId); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | // change exporterflags if we are doing a ContentExport |
108 | 108 | if ($this->folderid) { |
109 | - $this->exporterflags |= SYNC_NORMAL | SYNC_READ_STATE; |
|
109 | + $this->exporterflags |= SYNC_NORMAL|SYNC_READ_STATE; |
|
110 | 110 | |
111 | 111 | // Initial sync, we don't want deleted items. If the initial sync is chunked |
112 | 112 | // we check the change ID of the syncstate (0 at initial sync) |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | if (!($this->flags & BACKEND_DISCARD_DATA)) { |
116 | 116 | SLog::Write(LOGLEVEL_DEBUG, "ExportChangesICS->Config(): syncing initial data"); |
117 | 117 | } |
118 | - $this->exporterflags |= SYNC_NO_SOFT_DELETIONS | SYNC_NO_DELETIONS; |
|
118 | + $this->exporterflags |= SYNC_NO_SOFT_DELETIONS|SYNC_NO_DELETIONS; |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 |
@@ -984,7 +984,7 @@ |
||
984 | 984 | define("LOGLEVEL_DEVICEID", 64); |
985 | 985 | define("LOGLEVEL_WBXMLSTACK", 128); |
986 | 986 | |
987 | -define("LOGLEVEL_ALL", LOGLEVEL_FATAL | LOGLEVEL_ERROR | LOGLEVEL_WARN | LOGLEVEL_INFO | LOGLEVEL_DEBUG | LOGLEVEL_WBXML); |
|
987 | +define("LOGLEVEL_ALL", LOGLEVEL_FATAL|LOGLEVEL_ERROR|LOGLEVEL_WARN|LOGLEVEL_INFO|LOGLEVEL_DEBUG|LOGLEVEL_WBXML); |
|
988 | 988 | |
989 | 989 | define("BACKEND_DISCARD_DATA", 1); |
990 | 990 |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | 0x3E => "CompleteTime", // Since 12.0 |
210 | 210 | 0x3F => "DisallowNewTimeProposal", // Since 14.0 |
211 | 211 | ], |
212 | - 3 => [ // Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
212 | + 3 => [// Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
213 | 213 | 0x05 => "Notify", |
214 | 214 | 0x06 => "Notification", |
215 | 215 | 0x07 => "Version", |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | 0x11 => "Status", // Since 14.1 |
543 | 543 | 0x12 => "Data", // Since 14.1 |
544 | 544 | ], |
545 | - 0x11 => [ // Since 12.0 |
|
545 | + 0x11 => [// Since 12.0 |
|
546 | 546 | 0x05 => "BodyPreference", |
547 | 547 | 0x06 => "Type", |
548 | 548 | 0x07 => "TruncationSize", |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | 0x1A => "BodyPart", // Since 14.1 |
567 | 567 | 0x1B => "Status", // Since 14.1 |
568 | 568 | ], |
569 | - 0x12 => [ // Since 12.0 |
|
569 | + 0x12 => [// Since 12.0 |
|
570 | 570 | 0x05 => "Settings", |
571 | 571 | 0x06 => "Status", |
572 | 572 | 0x07 => "Get", |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | 0x29 => "SendDisabled", // Since 14.1 |
607 | 607 | 0x2B => "RightsManagementInformation", // Since 14.1 |
608 | 608 | ], |
609 | - 0x13 => [ // Since 12.0 |
|
609 | + 0x13 => [// Since 12.0 |
|
610 | 610 | 0x05 => "LinkId", |
611 | 611 | 0x06 => "DisplayName", |
612 | 612 | 0x07 => "IsFolder", |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | 0x0B => "ContentLength", |
617 | 617 | 0x0C => "ContentType", |
618 | 618 | ], |
619 | - 0x14 => [ // Since 12.0 |
|
619 | + 0x14 => [// Since 12.0 |
|
620 | 620 | 0x05 => "ItemOperations", |
621 | 621 | 0x06 => "Fetch", |
622 | 622 | 0x07 => "Store", |
@@ -639,7 +639,7 @@ discard block |
||
639 | 639 | 0x18 => "ConversationId", // Since 14.0 |
640 | 640 | 0x19 => "MoveAlways", // Since 14.0 |
641 | 641 | ], |
642 | - 0x15 => [ // Since 14.0 |
|
642 | + 0x15 => [// Since 14.0 |
|
643 | 643 | 0x05 => "SendMail", |
644 | 644 | 0x06 => "SmartForward", |
645 | 645 | 0x07 => "SmartReply", |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | 0x12 => "Status", |
657 | 657 | 0x13 => "AccountId", // Since 14.1 |
658 | 658 | ], |
659 | - 0x16 => [ // Since 14.0 |
|
659 | + 0x16 => [// Since 14.0 |
|
660 | 660 | 0x05 => "UmCallerId", |
661 | 661 | 0x06 => "UmUserNotes", |
662 | 662 | 0x07 => "UmAttDuration", |
@@ -673,14 +673,14 @@ discard block |
||
673 | 673 | 0x12 => "FirstDayOfWeek", // Since 14.1 |
674 | 674 | 0x13 => "MeetingMessageType", // Since 14.1 |
675 | 675 | ], |
676 | - 0x17 => [ // Since 14.0 |
|
676 | + 0x17 => [// Since 14.0 |
|
677 | 677 | 0x05 => "Subject", |
678 | 678 | 0x06 => "MessageClass", |
679 | 679 | 0x07 => "LastModifiedDate", |
680 | 680 | 0x08 => "Categories", |
681 | 681 | 0x09 => "Category", |
682 | 682 | ], |
683 | - 0x18 => [ // Since 14.1 |
|
683 | + 0x18 => [// Since 14.1 |
|
684 | 684 | 0x05 => "RightsManagementSupport", |
685 | 685 | 0x06 => "RightsManagementTemplates", |
686 | 686 | 0x07 => "RightsManagementTemplate", |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * @param mixed $message |
115 | 115 | */ |
116 | 116 | protected function afterLog($loglevel, $message) { |
117 | - if ($loglevel & (LOGLEVEL_FATAL | LOGLEVEL_ERROR | LOGLEVEL_WARN)) { |
|
117 | + if ($loglevel & (LOGLEVEL_FATAL|LOGLEVEL_ERROR|LOGLEVEL_WARN)) { |
|
118 | 118 | $data = $this->BuildLogString($loglevel, $message) . PHP_EOL; |
119 | 119 | @file_put_contents(LOGERRORFILE, $data, FILE_APPEND); |
120 | 120 | } |
@@ -1372,8 +1372,7 @@ discard block |
||
1372 | 1372 | |
1373 | 1373 | // if the search range is set limit the result to it, otherwise return all found messages |
1374 | 1374 | $rows = (is_array($searchRange) && isset($searchRange[0], $searchRange[1])) ? |
1375 | - mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : |
|
1376 | - mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS); |
|
1375 | + mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS); |
|
1377 | 1376 | |
1378 | 1377 | $cnt = count($rows); |
1379 | 1378 | $items['searchtotal'] = $cnt; |
@@ -1977,12 +1976,12 @@ discard block |
||
1977 | 1976 | mapi_setprops($stateMessage, [PR_DISPLAY_NAME => $messageName, PR_MESSAGE_CLASS => 'IPM.Note.GrommunioState']); |
1978 | 1977 | } |
1979 | 1978 | if (isset($stateMessage)) { |
1980 | - $jsonEncodedState = is_object($state) || is_array($state) ? json_encode($state, JSON_INVALID_UTF8_IGNORE | JSON_UNESCAPED_UNICODE) : $state; |
|
1979 | + $jsonEncodedState = is_object($state) || is_array($state) ? json_encode($state, JSON_INVALID_UTF8_IGNORE|JSON_UNESCAPED_UNICODE) : $state; |
|
1981 | 1980 | |
1982 | 1981 | $encodedState = base64_encode($jsonEncodedState); |
1983 | 1982 | $encodedStateLength = strlen($encodedState); |
1984 | 1983 | mapi_setprops($stateMessage, [PR_LAST_VERB_EXECUTED => is_int($counter) ? $counter : 0]); |
1985 | - $stream = mapi_openproperty($stateMessage, PR_BODY, IID_IStream, STGM_DIRECT, MAPI_CREATE | MAPI_MODIFY); |
|
1984 | + $stream = mapi_openproperty($stateMessage, PR_BODY, IID_IStream, STGM_DIRECT, MAPI_CREATE|MAPI_MODIFY); |
|
1986 | 1985 | mapi_stream_setsize($stream, $encodedStateLength); |
1987 | 1986 | mapi_stream_write($stream, $encodedState); |
1988 | 1987 | mapi_stream_commit($stream); |
@@ -2077,7 +2076,7 @@ discard block |
||
2077 | 2076 | private function adviseStoreToSink($store) { |
2078 | 2077 | // check if we already advised the store |
2079 | 2078 | if (!in_array($store, $this->changesSinkStores)) { |
2080 | - mapi_msgstore_advise($store, null, fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink); |
|
2079 | + mapi_msgstore_advise($store, null, fnevObjectModified|fnevObjectCreated|fnevObjectMoved|fnevObjectDeleted, $this->changesSink); |
|
2081 | 2080 | |
2082 | 2081 | if (mapi_last_hresult()) { |
2083 | 2082 | SLog::Write(LOGLEVEL_WARN, sprintf("Grommunio->adviseStoreToSink(): failed to advised store '%s' with code 0x%X. Polling will be performed.", $store, mapi_last_hresult())); |
@@ -2551,7 +2550,7 @@ discard block |
||
2551 | 2550 | $resOr, |
2552 | 2551 | [RES_CONTENT, |
2553 | 2552 | [ |
2554 | - FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
2553 | + FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
2555 | 2554 | ULPROPTAG => $property, |
2556 | 2555 | VALUE => u2w($term), |
2557 | 2556 | ], |