@@ -28,40 +28,40 @@ discard block |
||
28 | 28 | |
29 | 29 | /* Object type */ |
30 | 30 | |
31 | -define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
32 | -define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
33 | -define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
34 | -define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
35 | -define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
36 | -define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
37 | -define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
38 | -define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
39 | -define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
40 | -define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
41 | -define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
42 | -define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
31 | +define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
32 | +define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
33 | +define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
34 | +define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
35 | +define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
36 | +define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
37 | +define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
38 | +define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
39 | +define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
40 | +define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
41 | +define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
42 | +define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
43 | 43 | |
44 | 44 | define('MV_FLAG', 0x1000); |
45 | 45 | define('MV_INSTANCE', 0x2000); |
46 | -define('MVI_FLAG', MV_FLAG | MV_INSTANCE); |
|
47 | - |
|
48 | -define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
49 | -define('PT_NULL', 1); /* NULL property value */ |
|
50 | -define('PT_I2', 2); /* Signed 16-bit value */ |
|
51 | -define('PT_LONG', 3); /* Signed 32-bit value */ |
|
52 | -define('PT_R4', 4); /* 4-byte floating point */ |
|
53 | -define('PT_DOUBLE', 5); /* Floating point double */ |
|
54 | -define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
55 | -define('PT_APPTIME', 7); /* Application time */ |
|
56 | -define('PT_ERROR', 10); /* 32-bit error value */ |
|
57 | -define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
58 | -define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
59 | -define('PT_I8', 20); /* 8-byte signed integer */ |
|
60 | -define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
61 | -define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
62 | -define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
63 | -define('PT_CLSID', 72); /* OLE GUID */ |
|
64 | -define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
46 | +define('MVI_FLAG', MV_FLAG|MV_INSTANCE); |
|
47 | + |
|
48 | +define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
49 | +define('PT_NULL', 1); /* NULL property value */ |
|
50 | +define('PT_I2', 2); /* Signed 16-bit value */ |
|
51 | +define('PT_LONG', 3); /* Signed 32-bit value */ |
|
52 | +define('PT_R4', 4); /* 4-byte floating point */ |
|
53 | +define('PT_DOUBLE', 5); /* Floating point double */ |
|
54 | +define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
55 | +define('PT_APPTIME', 7); /* Application time */ |
|
56 | +define('PT_ERROR', 10); /* 32-bit error value */ |
|
57 | +define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
58 | +define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
59 | +define('PT_I8', 20); /* 8-byte signed integer */ |
|
60 | +define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
61 | +define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
62 | +define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
63 | +define('PT_CLSID', 72); /* OLE GUID */ |
|
64 | +define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
65 | 65 | /* Changes are likely to these numbers, and to their structures. */ |
66 | 66 | |
67 | 67 | /* Alternate property type names for ease of use */ |
@@ -73,18 +73,18 @@ discard block |
||
73 | 73 | |
74 | 74 | define('PT_TSTRING', PT_STRING8); |
75 | 75 | |
76 | -define('PT_MV_I2', (MV_FLAG | PT_I2)); |
|
77 | -define('PT_MV_LONG', (MV_FLAG | PT_LONG)); |
|
78 | -define('PT_MV_R4', (MV_FLAG | PT_R4)); |
|
79 | -define('PT_MV_DOUBLE', (MV_FLAG | PT_DOUBLE)); |
|
80 | -define('PT_MV_CURRENCY', (MV_FLAG | PT_CURRENCY)); |
|
81 | -define('PT_MV_APPTIME', (MV_FLAG | PT_APPTIME)); |
|
82 | -define('PT_MV_SYSTIME', (MV_FLAG | PT_SYSTIME)); |
|
83 | -define('PT_MV_STRING8', (MV_FLAG | PT_STRING8)); |
|
84 | -define('PT_MV_BINARY', (MV_FLAG | PT_BINARY)); |
|
85 | -define('PT_MV_UNICODE', (MV_FLAG | PT_UNICODE)); |
|
86 | -define('PT_MV_CLSID', (MV_FLAG | PT_CLSID)); |
|
87 | -define('PT_MV_I8', (MV_FLAG | PT_I8)); |
|
76 | +define('PT_MV_I2', (MV_FLAG|PT_I2)); |
|
77 | +define('PT_MV_LONG', (MV_FLAG|PT_LONG)); |
|
78 | +define('PT_MV_R4', (MV_FLAG|PT_R4)); |
|
79 | +define('PT_MV_DOUBLE', (MV_FLAG|PT_DOUBLE)); |
|
80 | +define('PT_MV_CURRENCY', (MV_FLAG|PT_CURRENCY)); |
|
81 | +define('PT_MV_APPTIME', (MV_FLAG|PT_APPTIME)); |
|
82 | +define('PT_MV_SYSTIME', (MV_FLAG|PT_SYSTIME)); |
|
83 | +define('PT_MV_STRING8', (MV_FLAG|PT_STRING8)); |
|
84 | +define('PT_MV_BINARY', (MV_FLAG|PT_BINARY)); |
|
85 | +define('PT_MV_UNICODE', (MV_FLAG|PT_UNICODE)); |
|
86 | +define('PT_MV_CLSID', (MV_FLAG|PT_CLSID)); |
|
87 | +define('PT_MV_I8', (MV_FLAG|PT_I8)); |
|
88 | 88 | |
89 | 89 | define('PT_MV_TSTRING', PT_MV_STRING8); |
90 | 90 | /* bit 0: set if descending, clear if ascending */ |
@@ -202,14 +202,14 @@ discard block |
||
202 | 202 | |
203 | 203 | /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */ |
204 | 204 | |
205 | -define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
206 | -define('MAPI_AB', 34); /* Address Book */ |
|
207 | -define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
208 | -define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
209 | -define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
210 | -define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
211 | -define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
212 | -define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
205 | +define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
206 | +define('MAPI_AB', 34); /* Address Book */ |
|
207 | +define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
208 | +define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
209 | +define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
210 | +define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
211 | +define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
212 | +define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
213 | 213 | define('STATUS_VALIDATE_STATE', 0x00000001); |
214 | 214 | define('STATUS_SETTINGS_DIALOG', 0x00000002); |
215 | 215 | define('STATUS_CHANGE_PASSWORD', 0x00000004); |
@@ -255,10 +255,10 @@ discard block |
||
255 | 255 | define('MODRECIP_MODIFY', 0x00000004); |
256 | 256 | define('MODRECIP_REMOVE', 0x00000008); |
257 | 257 | |
258 | -define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
259 | -define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
260 | -define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
261 | -define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
258 | +define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
259 | +define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
260 | +define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
261 | +define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
262 | 262 | |
263 | 263 | /* IAttach Interface ------------------------------------------------------- */ |
264 | 264 | |
@@ -450,23 +450,23 @@ discard block |
||
450 | 450 | define('BMR_NEZ', 0x00000001); |
451 | 451 | |
452 | 452 | /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */ |
453 | -define('VALUE', 0); // propval |
|
454 | -define('RELOP', 1); // compare method |
|
455 | -define('FUZZYLEVEL', 2); // string search flags |
|
456 | -define('CB', 3); // size restriction |
|
457 | -define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
458 | -define('ULMASK', 5); // bitmask |
|
459 | -define('ULPROPTAG', 6); // property |
|
460 | -define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
461 | -define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
462 | -define('PROPS', 9); // RES_COMMENT properties |
|
463 | -define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
453 | +define('VALUE', 0); // propval |
|
454 | +define('RELOP', 1); // compare method |
|
455 | +define('FUZZYLEVEL', 2); // string search flags |
|
456 | +define('CB', 3); // size restriction |
|
457 | +define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
458 | +define('ULMASK', 5); // bitmask |
|
459 | +define('ULPROPTAG', 6); // property |
|
460 | +define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
461 | +define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
462 | +define('PROPS', 9); // RES_COMMENT properties |
|
463 | +define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
464 | 464 | |
465 | 465 | /* GUID's for PR_MDB_PROVIDER */ |
466 | -define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store |
|
467 | -define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
468 | -define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store |
|
469 | -define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
466 | +define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store |
|
467 | +define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
468 | +define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store |
|
469 | +define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
470 | 470 | |
471 | 471 | /* global profile section guid */ |
472 | 472 | define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}")); |
@@ -498,18 +498,18 @@ discard block |
||
498 | 498 | define('ecRightsContact', 0x00000200); |
499 | 499 | define('ecRightsFolderVisible', 0x00000400); |
500 | 500 | |
501 | -define('ecRightsAll', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderAccess | ecRightsFolderVisible); |
|
502 | -define('ecRightsSecretary', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsFolderVisible); |
|
503 | -define('ecRightsFullControl', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderVisible); |
|
504 | -define('ecRightsContributor', ecRightsFolderVisible | ecRightsCreate); |
|
505 | -define('ecRightsReviewer', ecRightsReadAny | ecRightsFolderVisible); |
|
506 | -define('ecRightsNonEditingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned); |
|
507 | -define('ecRightsAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned); |
|
508 | -define('ecRightsPublishingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsCreateSubfolder); |
|
509 | -define('ecRightsEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny); |
|
510 | -define('ecRightsPublishingEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder); |
|
511 | -define('ecRightsDefault', ecRightsNone | ecRightsFolderVisible); |
|
512 | -define('ecRightsDefaultPublic', ecRightsReadAny | ecRightsFolderVisible); |
|
501 | +define('ecRightsAll', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderAccess|ecRightsFolderVisible); |
|
502 | +define('ecRightsSecretary', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsFolderVisible); |
|
503 | +define('ecRightsFullControl', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderVisible); |
|
504 | +define('ecRightsContributor', ecRightsFolderVisible|ecRightsCreate); |
|
505 | +define('ecRightsReviewer', ecRightsReadAny|ecRightsFolderVisible); |
|
506 | +define('ecRightsNonEditingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned); |
|
507 | +define('ecRightsAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned); |
|
508 | +define('ecRightsPublishingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsCreateSubfolder); |
|
509 | +define('ecRightsEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny); |
|
510 | +define('ecRightsPublishingEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder); |
|
511 | +define('ecRightsDefault', ecRightsNone|ecRightsFolderVisible); |
|
512 | +define('ecRightsDefaultPublic', ecRightsReadAny|ecRightsFolderVisible); |
|
513 | 513 | define('ecRightsAdmin', 0x00001000); |
514 | 514 | define('ecRightsAllMask', 0x000015FB); |
515 | 515 | |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | define('ROW_ADD', 0x0001); |
526 | 526 | define('ROW_MODIFY', 0x0002); |
527 | 527 | define('ROW_REMOVE', 0x0004); |
528 | -define('ROW_EMPTY', (ROW_ADD | ROW_REMOVE)); |
|
528 | +define('ROW_EMPTY', (ROW_ADD|ROW_REMOVE)); |
|
529 | 529 | |
530 | 530 | // new property types |
531 | 531 | define('PT_SRESTRICTION', 0x00FD); |
@@ -595,38 +595,38 @@ discard block |
||
595 | 595 | define('SYNC_NO_FOREIGN_KEYS', 0x100); |
596 | 596 | define('SYNC_LIMITED_IMESSAGE', 0x200); |
597 | 597 | define('SYNC_CATCHUP', 0x400); |
598 | -define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
599 | -define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
598 | +define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
599 | +define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
600 | 600 | define('SYNC_BEST_BODY', 0x2000); |
601 | 601 | define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000); |
602 | -define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
602 | +define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
603 | 603 | define('SYNC_FXRECOVERMODE', 0x10000); |
604 | 604 | define('SYNC_DEFER_CONFIG', 0x20000); |
605 | -define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
606 | -define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
605 | +define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
606 | +define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
607 | 607 | |
608 | -define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
608 | +define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
609 | 609 | |
610 | -define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
610 | +define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
611 | 611 | |
612 | 612 | /* Flags for recipients in exceptions */ |
613 | -define('recipSendable', 0x00000001); // sendable attendee. |
|
614 | -define('recipOrganizer', 0x00000002); // meeting organizer |
|
615 | -define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
616 | -define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
617 | -define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
613 | +define('recipSendable', 0x00000001); // sendable attendee. |
|
614 | +define('recipOrganizer', 0x00000002); // meeting organizer |
|
615 | +define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
616 | +define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
617 | +define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
618 | 618 | define('recipReserved', 0x00000200); |
619 | 619 | |
620 | 620 | /* Flags which indicates type of Meeting Object */ |
621 | -define('mtgEmpty', 0x00000000); // Unspecified. |
|
622 | -define('mtgRequest', 0x00000001); // Initial meeting request. |
|
623 | -define('mtgFull', 0x00010000); // Full update. |
|
624 | -define('mtgInfo', 0x00020000); // Informational update. |
|
625 | -define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
626 | -define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
627 | - |
|
628 | -define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
629 | -define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
621 | +define('mtgEmpty', 0x00000000); // Unspecified. |
|
622 | +define('mtgRequest', 0x00000001); // Initial meeting request. |
|
623 | +define('mtgFull', 0x00010000); // Full update. |
|
624 | +define('mtgInfo', 0x00020000); // Informational update. |
|
625 | +define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
626 | +define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
627 | + |
|
628 | +define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
629 | +define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
630 | 630 | |
631 | 631 | /* Mask flags for mapi_msgstore_advise */ |
632 | 632 | define('fnevCriticalError', 0x00000001); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | break; |
77 | 77 | |
78 | 78 | case PT_MV_STRING8: |
79 | - case PT_MV_STRING8 | MVI_FLAG: |
|
79 | + case PT_MV_STRING8|MVI_FLAG: |
|
80 | 80 | $mv_values = explode(";", $value); |
81 | 81 | $values = []; |
82 | 82 |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | ], |
449 | 449 | ]]; |
450 | 450 | |
451 | - $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
451 | + $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
452 | 452 | mapi_table_restrict($hierarchyTable, $restriction, TBL_BATCH); |
453 | 453 | |
454 | 454 | // Also request PR_DEPTH |
@@ -1327,7 +1327,7 @@ discard block |
||
1327 | 1327 | if ($hardDelete === true) { |
1328 | 1328 | // hard delete the message if requested |
1329 | 1329 | // beware that folder can not be recovered after this and will be deleted from system entirely |
1330 | - if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES | DEL_FOLDERS | DELETE_HARD_DELETE)) { |
|
1330 | + if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES|DEL_FOLDERS|DELETE_HARD_DELETE)) { |
|
1331 | 1331 | $result = true; |
1332 | 1332 | |
1333 | 1333 | // if exists, also delete settings made for this folder (client don't need an update for this) |
@@ -1339,7 +1339,7 @@ discard block |
||
1339 | 1339 | // TODO: check if not only $parententryid=wastebasket, but also the parents of that parent... |
1340 | 1340 | // if folder is already in wastebasket or softDelete is requested then delete the message |
1341 | 1341 | if ($msgprops[PR_IPM_WASTEBASKET_ENTRYID] == $parententryid || $softDelete === true) { |
1342 | - if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES | DEL_FOLDERS)) { |
|
1342 | + if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES|DEL_FOLDERS)) { |
|
1343 | 1343 | $result = true; |
1344 | 1344 | |
1345 | 1345 | // if exists, also delete settings made for this folder (client don't need an update for this) |
@@ -1380,7 +1380,7 @@ discard block |
||
1380 | 1380 | } |
1381 | 1381 | } |
1382 | 1382 | else { |
1383 | - if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES | DEL_FOLDERS)) { |
|
1383 | + if (mapi_folder_deletefolder($folder, $entryid, DEL_MESSAGES|DEL_FOLDERS)) { |
|
1384 | 1384 | $result = true; |
1385 | 1385 | |
1386 | 1386 | // if exists, also delete settings made for this folder (client don't need an update for this) |
@@ -2113,7 +2113,7 @@ discard block |
||
2113 | 2113 | |
2114 | 2114 | if ($property != false) { |
2115 | 2115 | // Stream the body to the PR_BODY or PR_HTML property |
2116 | - $stream = mapi_openproperty($message, $property, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
2116 | + $stream = mapi_openproperty($message, $property, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
2117 | 2117 | mapi_stream_setsize($stream, strlen($body)); |
2118 | 2118 | mapi_stream_write($stream, $body); |
2119 | 2119 | mapi_stream_commit($stream); |
@@ -2192,9 +2192,9 @@ discard block |
||
2192 | 2192 | $messageProps = []; |
2193 | 2193 | // It stores the values that is exception allowed or not false -> not allowed |
2194 | 2194 | $isExceptionAllowed = true; |
2195 | - $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2196 | - $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2197 | - $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2195 | + $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2196 | + $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2197 | + $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2198 | 2198 | $properties = $GLOBALS['properties']->getAppointmentProperties(); |
2199 | 2199 | $send = false; |
2200 | 2200 | $oldProps = []; |
@@ -3115,7 +3115,7 @@ discard block |
||
3115 | 3115 | * convert flags of PR_MESSAGE_FLAGS property to flags that is |
3116 | 3116 | * used in mapi_message_setreadflag. |
3117 | 3117 | */ |
3118 | - $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3118 | + $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3119 | 3119 | |
3120 | 3120 | if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) { |
3121 | 3121 | $flag |= SUPPRESS_RECEIPT; |
@@ -3327,7 +3327,7 @@ discard block |
||
3327 | 3327 | $attachment = mapi_message_createattach($message); |
3328 | 3328 | mapi_setprops($attachment, $props); |
3329 | 3329 | |
3330 | - $imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY); |
|
3330 | + $imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY); |
|
3331 | 3331 | |
3332 | 3332 | // Copy the properties from the source message to the attachment |
3333 | 3333 | mapi_copyto($copyFrom, [], [], $imessage, 0); // includes attachments and recipients |
@@ -3367,7 +3367,7 @@ discard block |
||
3367 | 3367 | mapi_setprops($attachment, $props); |
3368 | 3368 | |
3369 | 3369 | // Stream the file to the PR_ATTACH_DATA_BIN property |
3370 | - $stream = mapi_openproperty($attachment, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
3370 | + $stream = mapi_openproperty($attachment, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
3371 | 3371 | mapi_stream_write($stream, $appointmentStream); |
3372 | 3372 | |
3373 | 3373 | // Commit the stream and save changes |
@@ -3419,7 +3419,7 @@ discard block |
||
3419 | 3419 | mapi_setprops($attachment, $props); |
3420 | 3420 | |
3421 | 3421 | // Stream the file to the PR_ATTACH_DATA_BIN property |
3422 | - $stream = mapi_openproperty($attachment, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
3422 | + $stream = mapi_openproperty($attachment, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
3423 | 3423 | $handle = fopen($filepath, "r"); |
3424 | 3424 | while (!feof($handle)) { |
3425 | 3425 | $contents = fread($handle, BLOCK_SIZE); |
@@ -3561,7 +3561,7 @@ discard block |
||
3561 | 3561 | PR_ATTACH_EXTENSION => $props[PR_ATTACH_EXTENSION] ?? '', |
3562 | 3562 | PR_ATTACH_FLAGS => $props[PR_ATTACH_FLAGS] ?? 0, |
3563 | 3563 | ]); |
3564 | - $newstream = mapi_openproperty($new, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
3564 | + $newstream = mapi_openproperty($new, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
3565 | 3565 | mapi_stream_setsize($newstream, $stat['cb']); |
3566 | 3566 | for ($i = 0; $i < $stat['cb']; $i += BLOCK_SIZE) { |
3567 | 3567 | mapi_stream_write($newstream, mapi_stream_read($oldstream, BLOCK_SIZE)); |
@@ -3862,11 +3862,11 @@ discard block |
||
3862 | 3862 | foreach ($recipientList as $recipientItem) { |
3863 | 3863 | if ($isException) { |
3864 | 3864 | // We do not add organizer to exception msg in organizer's calendar. |
3865 | - if (isset($recipientItem[PR_RECIPIENT_FLAGS]) && $recipientItem[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
3865 | + if (isset($recipientItem[PR_RECIPIENT_FLAGS]) && $recipientItem[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
3866 | 3866 | continue; |
3867 | 3867 | } |
3868 | 3868 | |
3869 | - $recipient[PR_RECIPIENT_FLAGS] = (recipSendable | recipExceptionalResponse | recipReserved); |
|
3869 | + $recipient[PR_RECIPIENT_FLAGS] = (recipSendable|recipExceptionalResponse|recipReserved); |
|
3870 | 3870 | } |
3871 | 3871 | |
3872 | 3872 | if (!empty($recipientItem["smtp_address"]) && empty($recipientItem["email_address"])) { |
@@ -4466,7 +4466,7 @@ discard block |
||
4466 | 4466 | |
4467 | 4467 | $l_sNewRecipientHistoryJSON = json_encode($recipient_history); |
4468 | 4468 | |
4469 | - $stream = mapi_openproperty($store, PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
4469 | + $stream = mapi_openproperty($store, PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
4470 | 4470 | mapi_stream_setsize($stream, strlen($l_sNewRecipientHistoryJSON)); |
4471 | 4471 | mapi_stream_write($stream, $l_sNewRecipientHistoryJSON); |
4472 | 4472 | mapi_stream_commit($stream); |
@@ -4674,7 +4674,7 @@ discard block |
||
4674 | 4674 | ]; |
4675 | 4675 | mapi_setprops($inlineImage, $props); |
4676 | 4676 | |
4677 | - $stream = mapi_openproperty($inlineImage, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
4677 | + $stream = mapi_openproperty($inlineImage, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
4678 | 4678 | mapi_stream_setsize($stream, strlen($rawImage)); |
4679 | 4679 | mapi_stream_write($stream, $rawImage); |
4680 | 4680 | mapi_stream_commit($stream); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function execute($json) { |
29 | 29 | /* If json_encode produces an empty string, wa-js shows an absolutely |
30 | 30 | * worthless "Invalid data received from the server" dialog. */ |
31 | - $jsonflags = JSON_THROW_ON_ERROR | JSON_INVALID_UTF8_SUBSTITUTE; |
|
31 | + $jsonflags = JSON_THROW_ON_ERROR|JSON_INVALID_UTF8_SUBSTITUTE; |
|
32 | 32 | |
33 | 33 | try { |
34 | 34 | // decode JSON data |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | foreach ($this->registeredStoreNotifiers as $key => &$storeNotifier) { |
206 | 206 | if ($entryidCmp->compareStoreEntryIds($storeNotifier['entryid'], $storeEntryid)) { |
207 | 207 | foreach ($storeNotifier as $key => $notifier) { |
208 | - if (isset($notifier['events']) && ($notifier['events'] & $event)) { |
|
208 | + if (isset($notifier['events']) && ($notifier['events']&$event)) { |
|
209 | 209 | if (!isset($updatedNotifiers[$key])) { |
210 | 210 | if (isset($this->notifiers[$key]) && is_object($this->notifiers[$key])) { |
211 | 211 | $this->notifiers[$key]->update($event, $entryID, $data); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | if (($entryID === REQUEST_ENTRYID && $folderNotifier['entryid'] === REQUEST_ENTRYID) || |
226 | 226 | ($entryidCmp->compareEntryIds($folderNotifier['entryid'], $entryID))) { |
227 | 227 | foreach ($folderNotifier as $key => $notifier) { |
228 | - if (isset($notifier['events']) && ($notifier['events'] & $event)) { |
|
228 | + if (isset($notifier['events']) && ($notifier['events']&$event)) { |
|
229 | 229 | if (!isset($updatedNotifiers[$key])) { |
230 | 230 | if (isset($this->notifiers[$key]) && is_object($this->notifiers[$key])) { |
231 | 231 | $this->notifiers[$key]->update($event, $entryID, $data); |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | } |
515 | 515 | |
516 | 516 | try { |
517 | - $stream = mapi_openproperty($this->store, PR_EC_WEBACCESS_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY); |
|
517 | + $stream = mapi_openproperty($this->store, PR_EC_WEBACCESS_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY); |
|
518 | 518 | mapi_stream_setsize($stream, strlen($settings)); |
519 | 519 | mapi_stream_write($stream, $settings); |
520 | 520 | mapi_stream_commit($stream); |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | |
541 | 541 | // Check if the settings have been changed. |
542 | 542 | if ($this->persistentSettingsString !== $persistentSettings) { |
543 | - $stream = mapi_openproperty($this->store, PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY); |
|
543 | + $stream = mapi_openproperty($this->store, PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY); |
|
544 | 544 | mapi_stream_setsize($stream, strlen($persistentSettings)); |
545 | 545 | mapi_stream_write($stream, $persistentSettings); |
546 | 546 | mapi_stream_commit($stream); |
@@ -297,7 +297,7 @@ |
||
297 | 297 | $r = intval($m[1]); |
298 | 298 | $g = intval($m[2]); |
299 | 299 | $b = intval($m[3]); |
300 | - if ($r < 0 || $r > 255 || $g < 0 || $g > 255 | $b < 0 || $b > 255) { |
|
300 | + if ($r < 0 || $r > 255 || $g < 0 || $g > 255|$b < 0 || $b > 255) { |
|
301 | 301 | // Not a valid color |
302 | 302 | return null; |
303 | 303 | } |
@@ -228,21 +228,21 @@ |
||
228 | 228 | [ |
229 | 229 | [RES_CONTENT, |
230 | 230 | [ |
231 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
231 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
232 | 232 | ULPROPTAG => PR_ATTACH_CONTENT_ID, |
233 | 233 | VALUE => [PR_ATTACH_CONTENT_ID => $this->attachCid], |
234 | 234 | ], |
235 | 235 | ], |
236 | 236 | [RES_CONTENT, |
237 | 237 | [ |
238 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
238 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
239 | 239 | ULPROPTAG => PR_ATTACH_CONTENT_LOCATION, |
240 | 240 | VALUE => [PR_ATTACH_CONTENT_LOCATION => $this->attachCid], |
241 | 241 | ], |
242 | 242 | ], |
243 | 243 | [RES_CONTENT, |
244 | 244 | [ |
245 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
245 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
246 | 246 | ULPROPTAG => PR_ATTACH_FILENAME, |
247 | 247 | VALUE => [PR_ATTACH_FILENAME => $this->attachCid], |
248 | 248 | ], |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | // mark the message as read if the main message has read flag |
575 | 575 | if ($read) { |
576 | 576 | $mprops = mapi_getprops($message, [PR_MESSAGE_FLAGS]); |
577 | - mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS] | MSGFLAG_READ]); |
|
577 | + mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS]|MSGFLAG_READ]); |
|
578 | 578 | } |
579 | 579 | } |
580 | 580 | |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | $rootFolder = getSubTree($store); |
717 | 717 | } |
718 | 718 | |
719 | - $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
719 | + $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
720 | 720 | $rows = mapi_table_queryallrows($hierarchy, $props); |
721 | 721 | |
722 | 722 | // Append the Inbox folder itself. |