@@ -1095,7 +1095,7 @@ discard block |
||
1095 | 1095 | else { |
1096 | 1096 | $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1097 | 1097 | } |
1098 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1098 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1099 | 1099 | } |
1100 | 1100 | unset($recip); |
1101 | 1101 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1171,7 +1171,7 @@ discard block |
||
1171 | 1171 | else { |
1172 | 1172 | $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
1173 | 1173 | } |
1174 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1174 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1175 | 1175 | $deletedRecipients[] = $recipient; |
1176 | 1176 | } |
1177 | 1177 | } |
@@ -153,15 +153,15 @@ discard block |
||
153 | 153 | $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta; |
154 | 154 | $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet; |
155 | 155 | $properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200'; |
156 | - $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
156 | + $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
157 | 157 | $properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202'; |
158 | - $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
158 | + $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
159 | 159 | $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus; |
160 | 160 | $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus; |
161 | 161 | $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
162 | 162 | $properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2'; |
163 | 163 | $properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation; |
164 | - $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
164 | + $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
165 | 165 | $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
166 | 166 | $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole; |
167 | 167 | $properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime; |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring; |
171 | 171 | $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart; |
172 | 172 | $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd; |
173 | - $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
174 | - $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
175 | - $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
176 | - $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
177 | - $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
173 | + $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
174 | + $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
175 | + $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
176 | + $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
177 | + $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
178 | 178 | $properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230'; |
179 | 179 | // Propose new time properties |
180 | 180 | $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole; |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | $listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY; |
550 | 550 | $messageProps = mapi_getprops($this->message, $listProperties); |
551 | 551 | |
552 | - $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
552 | + $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
553 | 553 | if (!isset($goid)) { |
554 | 554 | return; |
555 | 555 | } |
@@ -1481,7 +1481,7 @@ discard block |
||
1481 | 1481 | $props[$this->proptags['goid2']] = $goid; |
1482 | 1482 | |
1483 | 1483 | if (!isset($props[$this->proptags['updatecounter']])) { |
1484 | - $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1484 | + $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1485 | 1485 | $props[$this->proptags['last_updatecounter']] = 0; |
1486 | 1486 | } |
1487 | 1487 | |
@@ -2486,7 +2486,7 @@ discard block |
||
2486 | 2486 | $getResourcesRestriction = [ |
2487 | 2487 | RES_PROPERTY, |
2488 | 2488 | [ |
2489 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2489 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2490 | 2490 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2491 | 2491 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2492 | 2492 | ], |
@@ -2762,7 +2762,7 @@ discard block |
||
2762 | 2762 | $getResourcesRestriction = [ |
2763 | 2763 | RES_PROPERTY, |
2764 | 2764 | [ |
2765 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2765 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2766 | 2766 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2767 | 2767 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2768 | 2768 | ], |
@@ -2980,7 +2980,7 @@ discard block |
||
2980 | 2980 | $restriction[1][] = [ |
2981 | 2981 | RES_PROPERTY, |
2982 | 2982 | [ |
2983 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2983 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2984 | 2984 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2985 | 2985 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2986 | 2986 | ], |
@@ -3083,7 +3083,7 @@ discard block |
||
3083 | 3083 | $stripResourcesRestriction[1][] = [ |
3084 | 3084 | RES_PROPERTY, |
3085 | 3085 | [ |
3086 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3086 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3087 | 3087 | ULPROPTAG => PR_RECIPIENT_TYPE, |
3088 | 3088 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
3089 | 3089 | ], |
@@ -3189,7 +3189,7 @@ discard block |
||
3189 | 3189 | $newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled'; |
3190 | 3190 | $newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request |
3191 | 3191 | $newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free |
3192 | - $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3192 | + $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3193 | 3193 | if (isset($newmessageprops[PR_SUBJECT])) { |
3194 | 3194 | $newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT]; |
3195 | 3195 | } |
@@ -1898,7 +1898,7 @@ |
||
1898 | 1898 | } |
1899 | 1899 | elseif ($this->recur['regen']) { |
1900 | 1900 | $year_starttime = $this->gmtime($now); |
1901 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1901 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1902 | 1902 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1903 | 1903 | |
1904 | 1904 | if ($now <= $dayend) { |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | * carried in the IPM.TaskRequest item (although this information seems |
25 | 25 | * redundant due to that information already being available in PR_MESSAGE_CLASS). |
26 | 26 | */ |
27 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
28 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
29 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
30 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
31 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
32 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
27 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
28 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
29 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
30 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
31 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
32 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
33 | 33 | |
34 | 34 | /* The TaskHistory is used to show the last action on the task |
35 | 35 | * on both the assigner and the assignee's side. |
@@ -39,22 +39,22 @@ discard block |
||
39 | 39 | * the format 'Accepted by <user> on 01-01-2010 11:00'. |
40 | 40 | */ |
41 | 41 | define('thNone', 0); |
42 | - define('thAccepted', 1); // Set by assignee |
|
43 | - define('thDeclined', 2); // Set by assignee |
|
44 | - define('thUpdated', 3); // Set by assignee |
|
42 | + define('thAccepted', 1); // Set by assignee |
|
43 | + define('thDeclined', 2); // Set by assignee |
|
44 | + define('thUpdated', 3); // Set by assignee |
|
45 | 45 | define('thDueDateChanged', 4); |
46 | - define('thAssigned', 5); // Set by assigner |
|
46 | + define('thAssigned', 5); // Set by assigner |
|
47 | 47 | |
48 | 48 | /* The TaskState value is used to differentiate the version of a task |
49 | 49 | * in the assigner's folder and the version in the |
50 | 50 | * assignee's folder. The buttons shown depend on this and |
51 | 51 | * the 'taskaccepted' boolean (for the assignee) |
52 | 52 | */ |
53 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
54 | - define('tdsOWNNEW', 1); // Not assigned |
|
55 | - define('tdsOWN', 2); // Assignee version |
|
56 | - define('tdsACC', 3); // Assigner version |
|
57 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
53 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
54 | + define('tdsOWNNEW', 1); // Not assigned |
|
55 | + define('tdsOWN', 2); // Assignee version |
|
56 | + define('tdsACC', 3); // Assigner version |
|
57 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
58 | 58 | |
59 | 59 | /* The TaskAcceptanceState is used for the assigner to indicate state */ |
60 | 60 | define('olTaskNotDelegated', 0); |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | |
65 | 65 | /* The task ownership indicates the role of the current user relative to the task. */ |
66 | 66 | define('olNewTask', 0); |
67 | - define('olDelegatedTask', 1); // Task has been assigned |
|
68 | - define('olOwnTask', 2); // Task owned |
|
67 | + define('olDelegatedTask', 1); // Task has been assigned |
|
68 | + define('olOwnTask', 2); // Task owned |
|
69 | 69 | |
70 | 70 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */ |
71 | 71 | define('tmrNone', 0); |
72 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
73 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
72 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
73 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
74 | 74 | |
75 | 75 | // Task icon index. |
76 | 76 | define('ICON_TASK_ASSIGNEE', 0x00000502); |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | } |
1244 | 1244 | |
1245 | 1245 | foreach ($recips as $recip) { |
1246 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1246 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1247 | 1247 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
1248 | 1248 | } |
1249 | 1249 |