@@ -1120,7 +1120,7 @@ discard block |
||
1120 | 1120 | else { |
1121 | 1121 | $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1122 | 1122 | } |
1123 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1123 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1124 | 1124 | } |
1125 | 1125 | unset($recip); |
1126 | 1126 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1196,7 +1196,7 @@ discard block |
||
1196 | 1196 | else { |
1197 | 1197 | $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1198 | 1198 | } |
1199 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1199 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1200 | 1200 | $deletedRecipients[] = $recipient; |
1201 | 1201 | } |
1202 | 1202 | } |
@@ -1918,7 +1918,7 @@ |
||
1918 | 1918 | } |
1919 | 1919 | elseif ($this->recur['regen']) { |
1920 | 1920 | $year_starttime = $this->gmtime($now); |
1921 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1921 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1922 | 1922 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1923 | 1923 | |
1924 | 1924 | if ($now <= $dayend) { |
@@ -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,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}")); |
@@ -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); |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | * carried in the IPM.TaskRequest item (although this information seems |
24 | 24 | * redundant due to that information already being available in PR_MESSAGE_CLASS). |
25 | 25 | */ |
26 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
27 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
28 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
29 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
30 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
31 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
26 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
27 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
28 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
29 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
30 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
31 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
32 | 32 | |
33 | 33 | /* The TaskHistory is used to show the last action on the task |
34 | 34 | * on both the assigner and the assignee's side. |
@@ -38,22 +38,22 @@ discard block |
||
38 | 38 | * the format 'Accepted by <user> on 01-01-2010 11:00'. |
39 | 39 | */ |
40 | 40 | define('thNone', 0); |
41 | - define('thAccepted', 1); // Set by assignee |
|
42 | - define('thDeclined', 2); // Set by assignee |
|
43 | - define('thUpdated', 3); // Set by assignee |
|
41 | + define('thAccepted', 1); // Set by assignee |
|
42 | + define('thDeclined', 2); // Set by assignee |
|
43 | + define('thUpdated', 3); // Set by assignee |
|
44 | 44 | define('thDueDateChanged', 4); |
45 | - define('thAssigned', 5); // Set by assigner |
|
45 | + define('thAssigned', 5); // Set by assigner |
|
46 | 46 | |
47 | 47 | /* The TaskState value is used to differentiate the version of a task |
48 | 48 | * in the assigner's folder and the version in the |
49 | 49 | * assignee's folder. The buttons shown depend on this and |
50 | 50 | * the 'taskaccepted' boolean (for the assignee) |
51 | 51 | */ |
52 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
53 | - define('tdsOWNNEW', 1); // Not assigned |
|
54 | - define('tdsOWN', 2); // Assignee version |
|
55 | - define('tdsACC', 3); // Assigner version |
|
56 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
52 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
53 | + define('tdsOWNNEW', 1); // Not assigned |
|
54 | + define('tdsOWN', 2); // Assignee version |
|
55 | + define('tdsACC', 3); // Assigner version |
|
56 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
57 | 57 | |
58 | 58 | /* The TaskAcceptanceState is used for the assigner to indicate state */ |
59 | 59 | define('olTaskNotDelegated', 0); |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | |
64 | 64 | /* The task ownership indicates the role of the current user relative to the task. */ |
65 | 65 | define('olNewTask', 0); |
66 | - define('olDelegatedTask', 1); // Task has been assigned |
|
67 | - define('olOwnTask', 2); // Task owned |
|
66 | + define('olDelegatedTask', 1); // Task has been assigned |
|
67 | + define('olOwnTask', 2); // Task owned |
|
68 | 68 | |
69 | 69 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */ |
70 | 70 | define('tmrNone', 0); |
71 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
72 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
71 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
72 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
73 | 73 | |
74 | 74 | // Task icon index. |
75 | 75 | define('ICON_TASK_ASSIGNEE', 0x00000502); |
@@ -515,14 +515,14 @@ discard block |
||
515 | 515 | // Set properties on Task Request |
516 | 516 | mapi_setprops($this->message, [ |
517 | 517 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
518 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
519 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
520 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
518 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
519 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
520 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
521 | 521 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
522 | 522 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
523 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
523 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
524 | 524 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
525 | - PR_ICON_INDEX => ICON_TASK_ASSIGNER, /* Task request icon */ |
|
525 | + PR_ICON_INDEX => ICON_TASK_ASSIGNER, /* Task request icon */ |
|
526 | 526 | ]); |
527 | 527 | $this->setLastUser(); |
528 | 528 | $this->setOwnerForAssignor(); |
@@ -537,10 +537,10 @@ discard block |
||
537 | 537 | |
538 | 538 | // Make it a task request, and put it in sent items after it is sent |
539 | 539 | mapi_setprops($outgoing, [ |
540 | - PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
541 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
542 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
543 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
540 | + PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
541 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
542 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
543 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
544 | 544 | PR_SUBJECT_PREFIX => $prefix, |
545 | 545 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
546 | 546 | ]); |
@@ -1206,7 +1206,7 @@ discard block |
||
1206 | 1206 | } |
1207 | 1207 | |
1208 | 1208 | foreach ($recips as $recip) { |
1209 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1209 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1210 | 1210 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
1211 | 1211 | } |
1212 | 1212 |
@@ -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 | /** |
@@ -779,13 +779,13 @@ discard block |
||
779 | 779 | $entryId = strtoupper($entryid); |
780 | 780 | |
781 | 781 | $res = [ |
782 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
783 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
784 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
785 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
786 | - 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
787 | - 'server' => '', // CHAR, variable length |
|
788 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
782 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
783 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
784 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
785 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
786 | + 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
787 | + 'server' => '', // CHAR, variable length |
|
788 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
789 | 789 | ]; |
790 | 790 | |
791 | 791 | $res['length'] = strlen($entryId); |
@@ -830,13 +830,13 @@ discard block |
||
830 | 830 | $entryId = strtoupper($entryid); |
831 | 831 | |
832 | 832 | $res = [ |
833 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
834 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
835 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
836 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
837 | - 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
838 | - 'server' => '', // CHAR, variable length |
|
839 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
833 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
834 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
835 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
836 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
837 | + 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
838 | + 'server' => '', // CHAR, variable length |
|
839 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
840 | 840 | ]; |
841 | 841 | |
842 | 842 | $res['length'] = strlen($entryId); |
@@ -1540,8 +1540,7 @@ |
||
1540 | 1540 | if (isset($exception->asbody)) { |
1541 | 1541 | $this->setASbody($exception->asbody, $exceptionprops, $appointmentprops); |
1542 | 1542 | $mapiexception["body"] = $exceptionprops[$appointmentprops["body"]] = |
1543 | - (isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : |
|
1544 | - ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : ""); |
|
1543 | + (isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : ""); |
|
1545 | 1544 | } |
1546 | 1545 | |
1547 | 1546 | array_push($recur["changed_occurrences"], $mapiexception); |
@@ -1372,8 +1372,7 @@ |
||
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; |