@@ -739,7 +739,7 @@ discard block |
||
739 | 739 | $props[PR_EXCEPTION_ENDTIME] = $this->fromGMT($this->tz, $exception_props[$this->proptags["duedate"]]); |
740 | 740 | mapi_setprops($attachment, $props); |
741 | 741 | |
742 | - $imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY); |
|
742 | + $imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY); |
|
743 | 743 | |
744 | 744 | if ($copy_attach_from) { |
745 | 745 | $attachmentTable = mapi_message_getattachmenttable($copy_attach_from); |
@@ -1120,13 +1120,13 @@ discard block |
||
1120 | 1120 | // Remove all deleted recipients |
1121 | 1121 | if (isset($exception_recips['remove'])) { |
1122 | 1122 | foreach ($exception_recips['remove'] as &$recip) { |
1123 | - if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
1124 | - $recip[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
1123 | + if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
1124 | + $recip[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
1125 | 1125 | } |
1126 | 1126 | else { |
1127 | - $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
1127 | + $recip[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
1128 | 1128 | } |
1129 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1129 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1130 | 1130 | } |
1131 | 1131 | unset($recip); |
1132 | 1132 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1195,13 +1195,13 @@ discard block |
||
1195 | 1195 | |
1196 | 1196 | // If recipient is not in list of deleted recipient, add him |
1197 | 1197 | if (!$foundInDeletedRecipients) { |
1198 | - if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
1199 | - $recipient[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
1198 | + if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
1199 | + $recipient[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
1200 | 1200 | } |
1201 | 1201 | else { |
1202 | - $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
1202 | + $recipient[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
1203 | 1203 | } |
1204 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1204 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1205 | 1205 | $deletedRecipients[] = $recipient; |
1206 | 1206 | } |
1207 | 1207 | } |
@@ -1261,12 +1261,12 @@ discard block |
||
1261 | 1261 | $hasOrganizer = false; |
1262 | 1262 | // Check if meeting already has an organizer. |
1263 | 1263 | foreach ($recipients as $key => $recipient) { |
1264 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
1264 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
1265 | 1265 | $hasOrganizer = true; |
1266 | 1266 | } |
1267 | 1267 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
1268 | 1268 | // Recipients for an occurrence |
1269 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
1269 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
1270 | 1270 | } |
1271 | 1271 | } |
1272 | 1272 | |
@@ -1280,7 +1280,7 @@ discard block |
||
1280 | 1280 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
1281 | 1281 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
1282 | 1282 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
1283 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
1283 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
1284 | 1284 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
1285 | 1285 | |
1286 | 1286 | // Add organizer to recipients list. |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $r3 = ($eid >> 32) & 0xFF; |
22 | 22 | $r4 = ($eid >> 24) & 0xFF; |
23 | 23 | $r5 = ($eid >> 16) & 0xFF; |
24 | - $value = $r0 | ($r1 << 8) | ($r2 << 16) | ($r3 << 24) | ($r4 << 32) | ($r5 << 40); |
|
24 | + $value = $r0|($r1 << 8)|($r2 << 16)|($r3 << 24)|($r4 << 32)|($r5 << 40); |
|
25 | 25 | |
26 | 26 | return $value; |
27 | 27 | } |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | [ |
205 | 205 | RES_CONTENT, |
206 | 206 | [ |
207 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
207 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
208 | 208 | ULPROPTAG => PR_MESSAGE_CLASS, |
209 | 209 | VALUE => "IPM.Appointment", |
210 | 210 | ], |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | [ |
218 | 218 | RES_CONTENT, |
219 | 219 | [ |
220 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
220 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
221 | 221 | ULPROPTAG => PR_MESSAGE_CLASS, |
222 | 222 | VALUE => "IPM.Activity", |
223 | 223 | ], |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | [ |
231 | 231 | RES_CONTENT, |
232 | 232 | [ |
233 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
233 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
234 | 234 | ULPROPTAG => PR_MESSAGE_CLASS, |
235 | 235 | VALUE => "IPM.StickyNote", |
236 | 236 | ], |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | [ |
423 | 423 | RES_CONTENT, |
424 | 424 | [ |
425 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
425 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
426 | 426 | ULPROPTAG => PR_MESSAGE_CLASS, |
427 | 427 | VALUE => "IPM.Task.", |
428 | 428 | ], |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | [ |
431 | 431 | RES_CONTENT, |
432 | 432 | [ |
433 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
433 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
434 | 434 | ULPROPTAG => PR_MESSAGE_CLASS, |
435 | 435 | VALUE => "IPM.Task", |
436 | 436 | ], |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | elseif ($type == RES_BITMASK) { |
204 | 204 | $subres = $restriction[1]; |
205 | 205 | if ($subres[ULPROPTAG] == PR_MESSAGE_FLAGS && $subres[ULTYPE] == BMR_EQZ) { |
206 | - if (MSGFLAG_READ & $subres[ULMASK]) { |
|
206 | + if (MSGFLAG_READ&$subres[ULMASK]) { |
|
207 | 207 | $patterns['unread'] = true; |
208 | 208 | } |
209 | 209 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | } |
344 | 344 | } |
345 | 345 | // we never start the search folder because we will populate the search folder by ourselves |
346 | - mapi_folder_setsearchcriteria($searchFolder, $this->restriction, $entryids, $subfolder_flag | STOP_SEARCH); |
|
346 | + mapi_folder_setsearchcriteria($searchFolder, $this->restriction, $entryids, $subfolder_flag|STOP_SEARCH); |
|
347 | 347 | $this->sessionData['searchCriteriaCheck'] = $restrictionCheck; |
348 | 348 | } |
349 | 349 | |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | if ($this->sessionData['searchOriginalEntryids'][0] !== $folderEntryid) { |
353 | 353 | $this->sessionData['searchOriginalEntryids'][0] = $folderEntryid; |
354 | 354 | // we never start the search folder because we will populate the search folder by ourselves |
355 | - mapi_folder_setsearchcriteria($searchFolder, $this->restriction, [$entryid], $subfolder_flag | STOP_SEARCH); |
|
355 | + mapi_folder_setsearchcriteria($searchFolder, $this->restriction, [$entryid], $subfolder_flag|STOP_SEARCH); |
|
356 | 356 | } |
357 | 357 | } |
358 | 358 |
@@ -247,14 +247,14 @@ discard block |
||
247 | 247 | $properties["reminderset"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; |
248 | 248 | $properties["flag_request"] = "PT_STRING8:PSETID_Common:" . PidLidFlagRequest; |
249 | 249 | $properties["flag_due_by"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; |
250 | - $properties["updatecounter"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
251 | - $properties["last_updatecounter"] = "PT_LONG:PSETID_Appointment:0x8203"; // AppointmentLastSequence |
|
250 | + $properties["updatecounter"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
251 | + $properties["last_updatecounter"] = "PT_LONG:PSETID_Appointment:0x8203"; // AppointmentLastSequence |
|
252 | 252 | $properties["busystatus"] = "PT_LONG:PSETID_Appointment:" . PidLidBusyStatus; |
253 | 253 | $properties["intendedbusystatus"] = "PT_LONG:PSETID_Appointment:" . PidLidIntendedBusyStatus; |
254 | 254 | $properties["start"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole; |
255 | 255 | $properties["responselocation"] = "PT_STRING8:PSETID_Meeting:0x2"; |
256 | 256 | $properties["location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
257 | - $properties["requestsent"] = "PT_BOOLEAN:PSETID_Appointment:0x8229"; // PidLidFInvited, MeetingRequestWasSent |
|
257 | + $properties["requestsent"] = "PT_BOOLEAN:PSETID_Appointment:0x8229"; // PidLidFInvited, MeetingRequestWasSent |
|
258 | 258 | $properties["startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole; |
259 | 259 | $properties["duedate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole; |
260 | 260 | $properties["commonstart"] = "PT_SYSTIME:PSETID_Common:0x8516"; |
@@ -262,11 +262,11 @@ discard block |
||
262 | 262 | $properties["recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; |
263 | 263 | $properties["clipstart"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; |
264 | 264 | $properties["clipend"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; |
265 | - $properties["start_recur_date"] = "PT_LONG:PSETID_Meeting:0xD"; // StartRecurTime |
|
266 | - $properties["start_recur_time"] = "PT_LONG:PSETID_Meeting:0xE"; // StartRecurTime |
|
267 | - $properties["end_recur_date"] = "PT_LONG:PSETID_Meeting:0xF"; // EndRecurDate |
|
268 | - $properties["end_recur_time"] = "PT_LONG:PSETID_Meeting:0x10"; // EndRecurTime |
|
269 | - $properties["is_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
265 | + $properties["start_recur_date"] = "PT_LONG:PSETID_Meeting:0xD"; // StartRecurTime |
|
266 | + $properties["start_recur_time"] = "PT_LONG:PSETID_Meeting:0xE"; // StartRecurTime |
|
267 | + $properties["end_recur_date"] = "PT_LONG:PSETID_Meeting:0xF"; // EndRecurDate |
|
268 | + $properties["end_recur_time"] = "PT_LONG:PSETID_Meeting:0x10"; // EndRecurTime |
|
269 | + $properties["is_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
270 | 270 | // Propose new time properties |
271 | 271 | $properties["proposed_start_whole"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedStartWhole; |
272 | 272 | $properties["proposed_end_whole"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedEndWhole; |
@@ -639,7 +639,7 @@ discard block |
||
639 | 639 | $properties = []; |
640 | 640 | $properties["entryid"] = PR_ENTRYID; |
641 | 641 | $properties["parent_entryid"] = PR_PARENT_ENTRYID; |
642 | - $properties["store_entryid"] = PR_STORE_ENTRYID; // is this required ??? |
|
642 | + $properties["store_entryid"] = PR_STORE_ENTRYID; // is this required ??? |
|
643 | 643 | $properties["icon_index"] = PR_ICON_INDEX; |
644 | 644 | $properties["message_class"] = PR_MESSAGE_CLASS; |
645 | 645 | $properties["message_flags"] = PR_MESSAGE_FLAGS; |
@@ -955,9 +955,9 @@ discard block |
||
955 | 955 | $properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
956 | 956 | $properties["appointment_recurring_pattern"] = "PT_STRING8:PSETID_Appointment:0x8232"; |
957 | 957 | $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; |
958 | - $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; // ClipStart |
|
959 | - $properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; // ClipEnd |
|
960 | - $properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
958 | + $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; // ClipStart |
|
959 | + $properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; // ClipEnd |
|
960 | + $properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
961 | 961 | $properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
962 | 962 | // Propose new time properties |
963 | 963 | $properties["proposed_start_date"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedStartWhole; |
@@ -1243,18 +1243,18 @@ discard block |
||
1243 | 1243 | $properties["subject"] = PR_SUBJECT; |
1244 | 1244 | $properties["object_type"] = PR_OBJECT_TYPE; |
1245 | 1245 | |
1246 | - $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; // PidLidReminderSet |
|
1247 | - $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; // PidLidReminderDelta |
|
1248 | - $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; // PidLidReminderTime |
|
1249 | - $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; // PidLidReminderSignalTime |
|
1246 | + $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; // PidLidReminderSet |
|
1247 | + $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; // PidLidReminderDelta |
|
1248 | + $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; // PidLidReminderTime |
|
1249 | + $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; // PidLidReminderSignalTime |
|
1250 | 1250 | |
1251 | - $properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; // PidLidTaskDueDate |
|
1252 | - $properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; // PidLidTaskStartDate |
|
1253 | - $properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; // PidLidTaskResetReminder |
|
1254 | - $properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; // PidLidTaskFRecurring |
|
1251 | + $properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; // PidLidTaskDueDate |
|
1252 | + $properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; // PidLidTaskStartDate |
|
1253 | + $properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; // PidLidTaskResetReminder |
|
1254 | + $properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; // PidLidTaskFRecurring |
|
1255 | 1255 | $properties["taskmode"] = "PT_LONG:PSETID_Common:0x8518"; |
1256 | 1256 | |
1257 | - $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; // PidLidRecurring |
|
1257 | + $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; // PidLidRecurring |
|
1258 | 1258 | $properties["appointment_startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole; |
1259 | 1259 | $properties["appointment_enddate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole; |
1260 | 1260 | $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; |
@@ -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); |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | ], |
313 | 313 | ]; |
314 | 314 | |
315 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
315 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
316 | 316 | $softDeletedItems = mapi_table_queryallrows($table, [PR_ENTRYID], $restriction); |
317 | 317 | if (!empty($softDeletedItems)) { |
318 | 318 | return true; |
@@ -525,12 +525,12 @@ discard block |
||
525 | 525 | // Set properties on Task Request |
526 | 526 | mapi_setprops($this->message, [ |
527 | 527 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
528 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
529 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
530 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
528 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
529 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
530 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
531 | 531 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
532 | 532 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
533 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
533 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
534 | 534 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
535 | 535 | PR_ICON_INDEX => ICON_TASK_ASSIGNER, |
536 | 536 | ]); |
@@ -547,10 +547,10 @@ discard block |
||
547 | 547 | |
548 | 548 | // Make it a task request, and put it in sent items after it is sent |
549 | 549 | mapi_setprops($outgoing, [ |
550 | - PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
551 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
552 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
553 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
550 | + PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
551 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
552 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
553 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
554 | 554 | PR_SUBJECT_PREFIX => $prefix, |
555 | 555 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
556 | 556 | ]); |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | PR_ATTACHMENT_HIDDEN => true, |
562 | 562 | PR_DISPLAY_NAME => $messageprops[PR_SUBJECT], ]); |
563 | 563 | |
564 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY | MAPI_CREATE); |
|
564 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY|MAPI_CREATE); |
|
565 | 565 | |
566 | 566 | mapi_copyto($this->message, [], [], $sub); |
567 | 567 | mapi_setprops($sub, [PR_MESSAGE_CLASS => 'IPM.Task']); |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | |
904 | 904 | $attach = mapi_message_createattach($outgoing); |
905 | 905 | mapi_setprops($attach, [PR_ATTACH_METHOD => ATTACH_EMBEDDED_MSG, PR_DISPLAY_NAME => $messageprops[PR_CONVERSATION_TOPIC], PR_ATTACHMENT_HIDDEN => true]); |
906 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE | MAPI_MODIFY); |
|
906 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE|MAPI_MODIFY); |
|
907 | 907 | |
908 | 908 | $message = !$this->isTaskRequest() ? $this->message : $this->getAssociatedTask(false); |
909 | 909 | |
@@ -954,7 +954,7 @@ discard block |
||
954 | 954 | // edit response before sending task response. |
955 | 955 | if ($this->taskCommentsInfo) { |
956 | 956 | $comments = $this->getTaskCommentsInfo(); |
957 | - $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY); |
|
957 | + $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY); |
|
958 | 958 | mapi_stream_setsize($stream, strlen($comments)); |
959 | 959 | mapi_stream_write($stream, $comments); |
960 | 960 | mapi_stream_commit($stream); |
@@ -1232,7 +1232,7 @@ discard block |
||
1232 | 1232 | } |
1233 | 1233 | |
1234 | 1234 | foreach ($recips as $recip) { |
1235 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1235 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1236 | 1236 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
1237 | 1237 | } |
1238 | 1238 |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | [ |
233 | 233 | RES_OR, |
234 | 234 | [ |
235 | - [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
235 | + [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
236 | 236 | [ |
237 | 237 | [ |
238 | 238 | RES_PROPERTY, |
@@ -261,8 +261,8 @@ discard block |
||
261 | 261 | VALUE => true, |
262 | 262 | ], |
263 | 263 | ], |
264 | - ], // EXISTS OR |
|
265 | - ]; // global OR |
|
264 | + ], // EXISTS OR |
|
265 | + ]; // global OR |
|
266 | 266 | |
267 | 267 | // Get requested properties, plus whatever we need |
268 | 268 | $proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]]; |
@@ -152,15 +152,15 @@ discard block |
||
152 | 152 | $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta; |
153 | 153 | $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet; |
154 | 154 | $properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200'; |
155 | - $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
155 | + $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
156 | 156 | $properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202'; |
157 | - $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
157 | + $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
158 | 158 | $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus; |
159 | 159 | $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus; |
160 | 160 | $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
161 | 161 | $properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2'; |
162 | 162 | $properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation; |
163 | - $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
163 | + $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
164 | 164 | $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
165 | 165 | $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole; |
166 | 166 | $properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime; |
@@ -169,11 +169,11 @@ discard block |
||
169 | 169 | $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring; |
170 | 170 | $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart; |
171 | 171 | $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd; |
172 | - $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
173 | - $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
174 | - $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
175 | - $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
176 | - $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
172 | + $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
173 | + $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
174 | + $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
175 | + $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
176 | + $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
177 | 177 | $properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230'; |
178 | 178 | // Propose new time properties |
179 | 179 | $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole; |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | $listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY; |
549 | 549 | $messageProps = mapi_getprops($this->message, $listProperties); |
550 | 550 | |
551 | - $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
551 | + $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
552 | 552 | if (!isset($goid)) { |
553 | 553 | return; |
554 | 554 | } |
@@ -1483,7 +1483,7 @@ discard block |
||
1483 | 1483 | $props[$this->proptags['goid2']] = $goid; |
1484 | 1484 | |
1485 | 1485 | if (!isset($props[$this->proptags['updatecounter']])) { |
1486 | - $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1486 | + $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1487 | 1487 | $props[$this->proptags['last_updatecounter']] = 0; |
1488 | 1488 | } |
1489 | 1489 | |
@@ -2282,12 +2282,12 @@ discard block |
||
2282 | 2282 | $hasOrganizer = false; |
2283 | 2283 | // Check if meeting already has an organizer. |
2284 | 2284 | foreach ($recipients as $key => $recipient) { |
2285 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
2285 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
2286 | 2286 | $hasOrganizer = true; |
2287 | 2287 | } |
2288 | 2288 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
2289 | 2289 | // Recipients for an occurrence |
2290 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
2290 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
2291 | 2291 | } |
2292 | 2292 | } |
2293 | 2293 | |
@@ -2301,7 +2301,7 @@ discard block |
||
2301 | 2301 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
2302 | 2302 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
2303 | 2303 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
2304 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
2304 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
2305 | 2305 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
2306 | 2306 | |
2307 | 2307 | // Add organizer to recipients list. |
@@ -2487,7 +2487,7 @@ discard block |
||
2487 | 2487 | $getResourcesRestriction = [ |
2488 | 2488 | RES_PROPERTY, |
2489 | 2489 | [ |
2490 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2490 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2491 | 2491 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2492 | 2492 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2493 | 2493 | ], |
@@ -2763,7 +2763,7 @@ discard block |
||
2763 | 2763 | $getResourcesRestriction = [ |
2764 | 2764 | RES_PROPERTY, |
2765 | 2765 | [ |
2766 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2766 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2767 | 2767 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2768 | 2768 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2769 | 2769 | ], |
@@ -2981,7 +2981,7 @@ discard block |
||
2981 | 2981 | $restriction[1][] = [ |
2982 | 2982 | RES_PROPERTY, |
2983 | 2983 | [ |
2984 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2984 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2985 | 2985 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2986 | 2986 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2987 | 2987 | ], |
@@ -3084,7 +3084,7 @@ discard block |
||
3084 | 3084 | $stripResourcesRestriction[1][] = [ |
3085 | 3085 | RES_PROPERTY, |
3086 | 3086 | [ |
3087 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3087 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3088 | 3088 | ULPROPTAG => PR_RECIPIENT_TYPE, |
3089 | 3089 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
3090 | 3090 | ], |
@@ -3190,7 +3190,7 @@ discard block |
||
3190 | 3190 | $newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled'; |
3191 | 3191 | $newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request |
3192 | 3192 | $newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free |
3193 | - $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3193 | + $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3194 | 3194 | if (isset($newmessageprops[PR_SUBJECT])) { |
3195 | 3195 | $newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT]; |
3196 | 3196 | } |