@@ -1075,7 +1075,7 @@ discard block |
||
1075 | 1075 | } else { |
1076 | 1076 | $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1077 | 1077 | } |
1078 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1078 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1079 | 1079 | } |
1080 | 1080 | unset($recip); |
1081 | 1081 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1150,7 +1150,7 @@ discard block |
||
1150 | 1150 | } else { |
1151 | 1151 | $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1152 | 1152 | } |
1153 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1153 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1154 | 1154 | $deletedRecipients[] = $recipient; |
1155 | 1155 | } |
1156 | 1156 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | // OR |
222 | 222 | [RES_OR, |
223 | 223 | [ |
224 | - [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
224 | + [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
225 | 225 | [ |
226 | 226 | [RES_PROPERTY, |
227 | 227 | [RELOP => RELOP_GT, |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | ], |
246 | 246 | ], |
247 | 247 | ], // EXISTS OR |
248 | - ]; // global OR |
|
248 | + ]; // global OR |
|
249 | 249 | |
250 | 250 | // Get requested properties, plus whatever we need |
251 | 251 | $proplist = [PR_ENTRYID, $properties['recurring'], $properties['recurring_data'], $properties['timezone_data']]; |
@@ -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 | 34 | define('MVI_FLAG', MV_FLAG | MV_INSTANCE); |
35 | 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) */ |
|
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 */ |
@@ -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,28 +438,28 @@ 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 | /* GUIDs for PR_MDB_PROVIDER */ |
454 | -define('KOPANO_SERVICE_GUID', makeGuid('{3C253DCA-D227-443C-94FE-425FAB958C19}')); // default store |
|
455 | -define('KOPANO_STORE_PUBLIC_GUID', makeGuid('{D47F4A09-D3BD-493C-B2FC-3C90BBCB48D4}')); // public store |
|
456 | -define('KOPANO_STORE_DELEGATE_GUID', makeGuid('{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}')); // other store |
|
457 | -define('KOPANO_STORE_ARCHIVER_GUID', makeGuid('{BC8953AD-2E3F-4172-9404-896FF459870F}')); // archive store |
|
454 | +define('KOPANO_SERVICE_GUID', makeGuid('{3C253DCA-D227-443C-94FE-425FAB958C19}')); // default store |
|
455 | +define('KOPANO_STORE_PUBLIC_GUID', makeGuid('{D47F4A09-D3BD-493C-B2FC-3C90BBCB48D4}')); // public store |
|
456 | +define('KOPANO_STORE_DELEGATE_GUID', makeGuid('{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}')); // other store |
|
457 | +define('KOPANO_STORE_ARCHIVER_GUID', makeGuid('{BC8953AD-2E3F-4172-9404-896FF459870F}')); // archive store |
|
458 | 458 | /* webapp depends on these yet */ |
459 | -define('ZARAFA_SERVICE_GUID', makeGuid('{3C253DCA-D227-443C-94FE-425FAB958C19}')); // default store |
|
460 | -define('ZARAFA_STORE_PUBLIC_GUID', makeGuid('{D47F4A09-D3BD-493C-B2FC-3C90BBCB48D4}')); // public store |
|
461 | -define('ZARAFA_STORE_DELEGATE_GUID', makeGuid('{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}')); // other store |
|
462 | -define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid('{BC8953AD-2E3F-4172-9404-896FF459870F}')); // archive store |
|
459 | +define('ZARAFA_SERVICE_GUID', makeGuid('{3C253DCA-D227-443C-94FE-425FAB958C19}')); // default store |
|
460 | +define('ZARAFA_STORE_PUBLIC_GUID', makeGuid('{D47F4A09-D3BD-493C-B2FC-3C90BBCB48D4}')); // public store |
|
461 | +define('ZARAFA_STORE_DELEGATE_GUID', makeGuid('{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}')); // other store |
|
462 | +define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid('{BC8953AD-2E3F-4172-9404-896FF459870F}')); // archive store |
|
463 | 463 | |
464 | 464 | /* global profile section guid */ |
465 | 465 | define('pbGlobalProfileSectionGuid', makeGuid('{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}')); |
@@ -576,11 +576,11 @@ discard block |
||
576 | 576 | define('SYNC_NO_FOREIGN_KEYS', 0x100); |
577 | 577 | define('SYNC_LIMITED_IMESSAGE', 0x200); |
578 | 578 | define('SYNC_CATCHUP', 0x400); |
579 | -define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
580 | -define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
579 | +define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
580 | +define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
581 | 581 | define('SYNC_BEST_BODY', 0x2000); |
582 | 582 | define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000); |
583 | -define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
583 | +define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
584 | 584 | define('SYNC_FXRECOVERMODE', 0x10000); |
585 | 585 | define('SYNC_DEFER_CONFIG', 0x20000); |
586 | 586 | define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
@@ -591,23 +591,23 @@ discard block |
||
591 | 591 | define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
592 | 592 | |
593 | 593 | /* Flags for recipients in exceptions */ |
594 | -define('recipSendable', 0x00000001); // sendable attendee. |
|
595 | -define('recipOrganizer', 0x00000002); // meeting organizer |
|
596 | -define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
597 | -define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
598 | -define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
594 | +define('recipSendable', 0x00000001); // sendable attendee. |
|
595 | +define('recipOrganizer', 0x00000002); // meeting organizer |
|
596 | +define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
597 | +define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
598 | +define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
599 | 599 | define('recipReserved', 0x00000200); |
600 | 600 | |
601 | 601 | /* Flags which indicates type of Meeting Object */ |
602 | -define('mtgEmpty', 0x00000000); // Unspecified. |
|
603 | -define('mtgRequest', 0x00000001); // Initial meeting request. |
|
604 | -define('mtgFull', 0x00010000); // Full update. |
|
605 | -define('mtgInfo', 0x00020000); // Informational update. |
|
606 | -define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
607 | -define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
608 | - |
|
609 | -define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
610 | -define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
602 | +define('mtgEmpty', 0x00000000); // Unspecified. |
|
603 | +define('mtgRequest', 0x00000001); // Initial meeting request. |
|
604 | +define('mtgFull', 0x00010000); // Full update. |
|
605 | +define('mtgInfo', 0x00020000); // Informational update. |
|
606 | +define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
607 | +define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
608 | + |
|
609 | +define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
610 | +define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
611 | 611 | |
612 | 612 | /* Mask flags for mapi_msgstore_advise */ |
613 | 613 | define('fnevCriticalError', 0x00000001); |
@@ -131,15 +131,15 @@ discard block |
||
131 | 131 | $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:0x8501'; |
132 | 132 | $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:0x8503'; |
133 | 133 | $properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200'; |
134 | - $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber |
|
135 | - $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
134 | + $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber |
|
135 | + $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
136 | 136 | $properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202'; |
137 | 137 | $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:0x8205'; |
138 | 138 | $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:0x8224'; |
139 | 139 | $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:0x820d'; |
140 | 140 | $properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2'; |
141 | 141 | $properties['location'] = 'PT_STRING8:PSETID_Appointment:0x8208'; |
142 | - $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
142 | + $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
143 | 143 | $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:0x820d'; |
144 | 144 | $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:0x820e'; |
145 | 145 | $properties['commonstart'] = 'PT_SYSTIME:PSETID_Common:0x8516'; |
@@ -147,11 +147,11 @@ discard block |
||
147 | 147 | $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:0x8223'; |
148 | 148 | $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:0x8235'; |
149 | 149 | $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:0x8236'; |
150 | - $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
151 | - $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
152 | - $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
153 | - $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
154 | - $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
150 | + $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
151 | + $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
152 | + $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
153 | + $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
154 | + $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
155 | 155 | $properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230'; |
156 | 156 | // Propose new time properties |
157 | 157 | $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:0x8250'; |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | $messageprops = mapi_getprops($this->message, $listProperties); |
520 | 520 | $store = $this->store; |
521 | 521 | |
522 | - $goid = $messageprops[$this->proptags['goid']]; // GlobalID (0x3) |
|
522 | + $goid = $messageprops[$this->proptags['goid']]; // GlobalID (0x3) |
|
523 | 523 | if (!isset($goid)) { |
524 | 524 | return; |
525 | 525 | } |
@@ -1290,7 +1290,7 @@ discard block |
||
1290 | 1290 | $props[$this->proptags['goid2']] = $goid; |
1291 | 1291 | |
1292 | 1292 | if (!isset($props[$this->proptags['updatecounter']])) { |
1293 | - $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1293 | + $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1294 | 1294 | $props[$this->proptags['last_updatecounter']] = 0; |
1295 | 1295 | } |
1296 | 1296 | |
@@ -2219,7 +2219,7 @@ discard block |
||
2219 | 2219 | // Get resource recipients |
2220 | 2220 | $getResourcesRestriction = [RES_AND, |
2221 | 2221 | [[RES_PROPERTY, |
2222 | - [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2222 | + [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2223 | 2223 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2224 | 2224 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2225 | 2225 | ], |
@@ -2470,7 +2470,7 @@ discard block |
||
2470 | 2470 | // Get resource recipients |
2471 | 2471 | $getResourcesRestriction = [RES_AND, |
2472 | 2472 | [[RES_PROPERTY, |
2473 | - [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2473 | + [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2474 | 2474 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2475 | 2475 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2476 | 2476 | ], |
@@ -2640,7 +2640,7 @@ discard block |
||
2640 | 2640 | // In direct-booking mode, we don't need to send cancellations to resources |
2641 | 2641 | if ($this->enableDirectBooking) { |
2642 | 2642 | $restriction[1][] = [RES_PROPERTY, |
2643 | - [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2643 | + [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2644 | 2644 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2645 | 2645 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2646 | 2646 | ], |
@@ -2724,7 +2724,7 @@ discard block |
||
2724 | 2724 | if ($this->enableDirectBooking) { |
2725 | 2725 | $stripResourcesRestriction[1][] = |
2726 | 2726 | [RES_PROPERTY, |
2727 | - [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2727 | + [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2728 | 2728 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2729 | 2729 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2730 | 2730 | ], |
@@ -2796,7 +2796,7 @@ discard block |
||
2796 | 2796 | $newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled'; |
2797 | 2797 | $newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request |
2798 | 2798 | $newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free |
2799 | - $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
2799 | + $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
2800 | 2800 | if (isset($newmessageprops[PR_SUBJECT])) { |
2801 | 2801 | $newmessageprops[PR_SUBJECT] = dgettext('kopano', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT]; |
2802 | 2802 | } |
@@ -22,12 +22,12 @@ discard block |
||
22 | 22 | * It is used to indicate the type of change that is being carried in the IPM.TaskRequest item (although this |
23 | 23 | * information seems redundant due to that information already being available in PR_MESSAGE_CLASS). |
24 | 24 | */ |
25 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
26 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
27 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
28 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
29 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
30 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
25 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
26 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
27 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
28 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
29 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
30 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
31 | 31 | |
32 | 32 | /* The TaskHistory is used to show the last action on the task on both the assigner and the assignee's side. |
33 | 33 | * |
@@ -35,20 +35,20 @@ discard block |
||
35 | 35 | * at the top of the task request in the format 'Accepted by <user> on 01-01-2010 11:00'. |
36 | 36 | */ |
37 | 37 | define('thNone', 0); |
38 | - define('thAccepted', 1); // Set by assignee |
|
39 | - define('thDeclined', 2); // Set by assignee |
|
40 | - define('thUpdated', 3); // Set by assignee |
|
38 | + define('thAccepted', 1); // Set by assignee |
|
39 | + define('thDeclined', 2); // Set by assignee |
|
40 | + define('thUpdated', 3); // Set by assignee |
|
41 | 41 | define('thDueDateChanged', 4); |
42 | - define('thAssigned', 5); // Set by assigner |
|
42 | + define('thAssigned', 5); // Set by assigner |
|
43 | 43 | |
44 | 44 | /* The TaskState value is used to differentiate the version of a task in the assigner's folder and the version in the |
45 | 45 | * assignee's folder. The buttons shown depend on this and the 'taskaccepted' boolean (for the assignee) |
46 | 46 | */ |
47 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
48 | - define('tdsOWNNEW', 1); // Not assigned |
|
49 | - define('tdsOWN', 2); // Assignee version |
|
50 | - define('tdsACC', 3); // Assigner version |
|
51 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
47 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
48 | + define('tdsOWNNEW', 1); // Not assigned |
|
49 | + define('tdsOWN', 2); // Assignee version |
|
50 | + define('tdsACC', 3); // Assigner version |
|
51 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
52 | 52 | |
53 | 53 | /* The delegationstate is used for the assigner to indicate state |
54 | 54 | */ |
@@ -60,14 +60,14 @@ discard block |
||
60 | 60 | /* The task ownership indicates the role of the current user relative to the task. |
61 | 61 | */ |
62 | 62 | define('olNewTask', 0); |
63 | - define('olDelegatedTask', 1); // Task has been assigned |
|
64 | - define('olOwnTask', 2); // Task owned |
|
63 | + define('olDelegatedTask', 1); // Task has been assigned |
|
64 | + define('olOwnTask', 2); // Task owned |
|
65 | 65 | |
66 | 66 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. |
67 | 67 | */ |
68 | 68 | define('tmrNone', 0); |
69 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
70 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
69 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
70 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
71 | 71 | |
72 | 72 | class TaskRequest { |
73 | 73 | // All recipient properties |
@@ -268,13 +268,13 @@ discard block |
||
268 | 268 | // Set properties on Task Request |
269 | 269 | mapi_setprops($this->message, [ |
270 | 270 | $this->props['taskglobalobjid'] => $taskid, /* our new taskglobalobjid */ |
271 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
272 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
273 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
271 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
272 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
273 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
274 | 274 | $this->props['delegationstate'] => olTaskDelegationUnknown, /* no reply yet */ |
275 | 275 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
276 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
277 | - PR_ICON_INDEX => 1283, /* Task request icon */ |
|
276 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
277 | + PR_ICON_INDEX => 1283, /* Task request icon */ |
|
278 | 278 | ]); |
279 | 279 | $this->setLastUser(); |
280 | 280 | $this->setOwnerForAssignor(); |
@@ -287,12 +287,12 @@ discard block |
||
287 | 287 | |
288 | 288 | // Make it a task request, and put it in sent items after it is sent |
289 | 289 | mapi_setprops($outgoing, [ |
290 | - PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
291 | - $this->props['taskstate'] => tdsOWNNEW, /* for the recipient the task is new */ |
|
292 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient, it is a request */ |
|
293 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
290 | + PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
291 | + $this->props['taskstate'] => tdsOWNNEW, /* for the recipient the task is new */ |
|
292 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient, it is a request */ |
|
293 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
294 | 294 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
295 | - PR_ICON_INDEX => 0xFFFFFFFF, /* show assigned icon */ |
|
295 | + PR_ICON_INDEX => 0xFFFFFFFF, /* show assigned icon */ |
|
296 | 296 | ]); |
297 | 297 | |
298 | 298 | // Set Body |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | $this->updateTaskRequest(); |
407 | 407 | |
408 | 408 | // Set as accepted |
409 | - mapi_setprops($this->message, [$this->props['taskhistory'] => thAccepted, $this->props['assignedtime'] => time(), $this->props['taskaccepted'] => true, $this->props['delegationstate'] => olTaskNotDelegated]); |
|
409 | + mapi_setprops($this->message, [$this->props['taskhistory'] => thAccepted, $this->props['assignedtime'] => time(), $this->props['taskaccepted'] => true, $this->props['delegationstate'] => olTaskNotDelegated]); |
|
410 | 410 | |
411 | 411 | mapi_savechanges($this->message); |
412 | 412 | |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | $this->updateTaskRequest(); |
436 | 436 | |
437 | 437 | // Set as declined |
438 | - mapi_setprops($this->message, [$this->props['taskhistory'] => thDeclined, $this->props['delegationstate'] => olTaskDelegationDeclined]); |
|
438 | + mapi_setprops($this->message, [$this->props['taskhistory'] => thDeclined, $this->props['delegationstate'] => olTaskDelegationDeclined]); |
|
439 | 439 | |
440 | 440 | mapi_savechanges($this->message); |
441 | 441 | |
@@ -872,7 +872,7 @@ discard block |
||
872 | 872 | } |
873 | 873 | |
874 | 874 | foreach ($recips as $recip) { |
875 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
875 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
876 | 876 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
877 | 877 | } |
878 | 878 |
@@ -1819,7 +1819,7 @@ |
||
1819 | 1819 | $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
1820 | 1820 | } elseif ($this->recur['regen']) { |
1821 | 1821 | $year_starttime = $this->gmtime($now); |
1822 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1822 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1823 | 1823 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1824 | 1824 | if ($now <= $dayend) { |
1825 | 1825 | $this->processOccurrenceItem($items, $daystart, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
@@ -172,37 +172,37 @@ |
||
172 | 172 | } |
173 | 173 | |
174 | 174 | switch ($errno) { |
175 | - case 0: |
|
176 | - // logging disabled by LOG_ERROR_MASK |
|
177 | - break; |
|
178 | - |
|
179 | - case E_DEPRECATED: |
|
180 | - // do not handle this message |
|
181 | - break; |
|
182 | - |
|
183 | - case E_NOTICE: |
|
184 | - case E_WARNING: |
|
185 | - $logger = \Logger::getLogger('error'); |
|
186 | - $logger->warn("{$errfile}:{$errline} {$errstr} ({$errno})"); |
|
187 | - |
|
188 | - break; |
|
189 | - |
|
190 | - default: |
|
191 | - $bt = debug_backtrace(); |
|
192 | - $logger = \Logger::getLogger('error'); |
|
193 | - $logger->error("trace error: {$errfile}:{$errline} {$errstr} ({$errno}) - backtrace: " . (count($bt) - 1) . ' steps'); |
|
194 | - for ($i = 1, $bt_length = count($bt); $i < $bt_length; ++$i) { |
|
195 | - $file = $line = 'unknown'; |
|
196 | - if (isset($bt[$i]['file'])) { |
|
197 | - $file = $bt[$i]['file']; |
|
198 | - } |
|
199 | - if (isset($bt[$i]['line'])) { |
|
200 | - $line = $bt[$i]['line']; |
|
201 | - } |
|
202 | - $logger->error("trace: {$i}:" . $file . ':' . $line . ' - ' . ((isset($bt[$i]['class'])) ? $bt[$i]['class'] . $bt[$i]['type'] : '') . $bt[$i]['function'] . '()'); |
|
175 | + case 0: |
|
176 | + // logging disabled by LOG_ERROR_MASK |
|
177 | + break; |
|
178 | + |
|
179 | + case E_DEPRECATED: |
|
180 | + // do not handle this message |
|
181 | + break; |
|
182 | + |
|
183 | + case E_NOTICE: |
|
184 | + case E_WARNING: |
|
185 | + $logger = \Logger::getLogger('error'); |
|
186 | + $logger->warn("{$errfile}:{$errline} {$errstr} ({$errno})"); |
|
187 | + |
|
188 | + break; |
|
189 | + |
|
190 | + default: |
|
191 | + $bt = debug_backtrace(); |
|
192 | + $logger = \Logger::getLogger('error'); |
|
193 | + $logger->error("trace error: {$errfile}:{$errline} {$errstr} ({$errno}) - backtrace: " . (count($bt) - 1) . ' steps'); |
|
194 | + for ($i = 1, $bt_length = count($bt); $i < $bt_length; ++$i) { |
|
195 | + $file = $line = 'unknown'; |
|
196 | + if (isset($bt[$i]['file'])) { |
|
197 | + $file = $bt[$i]['file']; |
|
203 | 198 | } |
199 | + if (isset($bt[$i]['line'])) { |
|
200 | + $line = $bt[$i]['line']; |
|
201 | + } |
|
202 | + $logger->error("trace: {$i}:" . $file . ':' . $line . ' - ' . ((isset($bt[$i]['class'])) ? $bt[$i]['class'] . $bt[$i]['type'] : '') . $bt[$i]['function'] . '()'); |
|
203 | + } |
|
204 | 204 | |
205 | - break; |
|
205 | + break; |
|
206 | 206 | } |
207 | 207 | } |
208 | 208 |
@@ -607,7 +607,7 @@ |
||
607 | 607 | ], |
608 | 608 | ], // EXISTS OR |
609 | 609 | ], |
610 | - ]; // global OR |
|
610 | + ]; // global OR |
|
611 | 611 | } |
612 | 612 | |
613 | 613 | /** |