@@ -452,7 +452,7 @@ |
||
452 | 452 | $props = []; |
453 | 453 | |
454 | 454 | // Addresses field value. |
455 | - $businessAddress = ($contactProps[$properties["business_address_street"]] ?? '' ) . "\n"; |
|
455 | + $businessAddress = ($contactProps[$properties["business_address_street"]] ?? '') . "\n"; |
|
456 | 456 | $businessAddress .= ($contactProps[$properties["business_address_city"]] ?? '') . " "; |
457 | 457 | $businessAddress .= ($contactProps[$properties["business_address_state"]] ?? '') . " "; |
458 | 458 | $businessAddress .= ($contactProps[$properties["business_address_postal_code"]] ?? '') . "\n"; |
@@ -219,7 +219,7 @@ |
||
219 | 219 | $backendDisplayName = $backend->backendDisplayName; |
220 | 220 | $backendVersion = $backend->backendVersion; |
221 | 221 | $cacheVersion = $this->getVersionFromCache($backendDisplayName, $accountID); |
222 | - if(!is_string($cacheVersion)) { |
|
222 | + if (!is_string($cacheVersion)) { |
|
223 | 223 | $cacheVersion = '0'; |
224 | 224 | } |
225 | 225 | $dir = $this->getCache($accountID, $cachePath); |
@@ -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; |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | $properties = []; |
647 | 647 | $properties["entryid"] = PR_ENTRYID; |
648 | 648 | $properties["parent_entryid"] = PR_PARENT_ENTRYID; |
649 | - $properties["store_entryid"] = PR_STORE_ENTRYID; // is this required ??? |
|
649 | + $properties["store_entryid"] = PR_STORE_ENTRYID; // is this required ??? |
|
650 | 650 | $properties["icon_index"] = PR_ICON_INDEX; |
651 | 651 | $properties["message_class"] = PR_MESSAGE_CLASS; |
652 | 652 | $properties["message_flags"] = PR_MESSAGE_FLAGS; |
@@ -960,9 +960,9 @@ discard block |
||
960 | 960 | $properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
961 | 961 | $properties["appointment_recurring_pattern"] = "PT_STRING8:PSETID_Appointment:" . PidLidRecurrencePattern; |
962 | 962 | $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; |
963 | - $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; // ClipStart |
|
964 | - $properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; // ClipEnd |
|
965 | - $properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
963 | + $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; // ClipStart |
|
964 | + $properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; // ClipEnd |
|
965 | + $properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION |
|
966 | 966 | $properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
967 | 967 | $properties["alldayevent"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidAppointmentSubType; |
968 | 968 | $properties["tzdefstart"] = "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentTimeZoneDefinitionStartDisplay; |
@@ -1268,18 +1268,18 @@ discard block |
||
1268 | 1268 | $properties["object_type"] = PR_OBJECT_TYPE; |
1269 | 1269 | |
1270 | 1270 | $properties["recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; |
1271 | - $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; // PidLidReminderSet |
|
1272 | - $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; // PidLidReminderDelta |
|
1273 | - $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; // PidLidReminderTime |
|
1274 | - $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; // PidLidReminderSignalTime |
|
1275 | - |
|
1276 | - $properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; // PidLidTaskDueDate |
|
1277 | - $properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; // PidLidTaskStartDate |
|
1278 | - $properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; // PidLidTaskResetReminder |
|
1279 | - $properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; // PidLidTaskFRecurring |
|
1271 | + $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; // PidLidReminderSet |
|
1272 | + $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; // PidLidReminderDelta |
|
1273 | + $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; // PidLidReminderTime |
|
1274 | + $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; // PidLidReminderSignalTime |
|
1275 | + |
|
1276 | + $properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; // PidLidTaskDueDate |
|
1277 | + $properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; // PidLidTaskStartDate |
|
1278 | + $properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; // PidLidTaskResetReminder |
|
1279 | + $properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; // PidLidTaskFRecurring |
|
1280 | 1280 | $properties["taskmode"] = "PT_LONG:PSETID_Common:0x8518"; |
1281 | 1281 | |
1282 | - $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; // PidLidRecurring |
|
1282 | + $properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; // PidLidRecurring |
|
1283 | 1283 | $properties["appointment_startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole; |
1284 | 1284 | $properties["appointment_enddate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole; |
1285 | 1285 | $properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; |
@@ -374,8 +374,7 @@ |
||
374 | 374 | // created on a mobile device (mobile devices do not send a timezone for |
375 | 375 | // all-day events). |
376 | 376 | $tzdefstart = isset($calendaritem['props']['tzdefstart']) ? |
377 | - hex2bin($calendaritem['props']['tzdefstart']) : |
|
378 | - mapi_ianatz_to_tzdef("Etc/UTC"); |
|
377 | + hex2bin($calendaritem['props']['tzdefstart']) : mapi_ianatz_to_tzdef("Etc/UTC"); |
|
379 | 378 | |
380 | 379 | // Compare the timezone definitions of the client and the appointment. |
381 | 380 | // Further processing is only required if they don't match. |
@@ -542,8 +542,7 @@ |
||
542 | 542 | // created on a mobile device (mobile devices do not send a timezone for |
543 | 543 | // all-day events). |
544 | 544 | $tzdefstart = isset($calendaritem['props']['tzdefstart']) ? |
545 | - hex2bin($calendaritem['props']['tzdefstart']) : |
|
546 | - mapi_ianatz_to_tzdef("Etc/UTC"); |
|
545 | + hex2bin($calendaritem['props']['tzdefstart']) : mapi_ianatz_to_tzdef("Etc/UTC"); |
|
547 | 546 | |
548 | 547 | // queryrows only returns 510 chars max, so if tzdef is longer than that |
549 | 548 | // it was probably silently truncated. In such case we need to open |
@@ -26,17 +26,17 @@ |
||
26 | 26 | |
27 | 27 | // used by distribution lists |
28 | 28 | define("WAB_GUID", pack("H*", "C091ADD3519DCF11A4A900AA0047FAA4")); |
29 | - define("DL_USER", 0xC3); // 195 |
|
30 | - define("DL_USER2", 0xD3); // 211 |
|
31 | - define("DL_USER3", 0xE3); // 227 |
|
29 | + define("DL_USER", 0xC3); // 195 |
|
30 | + define("DL_USER2", 0xD3); // 211 |
|
31 | + define("DL_USER3", 0xE3); // 227 |
|
32 | 32 | /* |
33 | 33 | * According to Exchange protocol, type property for oneoff contact |
34 | 34 | * will be 0x00. |
35 | 35 | */ |
36 | - define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | - define("DL_DIST", 0xB4); // 180 |
|
38 | - define("DL_USER_AB", 0xB5); // 181 |
|
39 | - define("DL_DIST_AB", 0xB6); // 182 |
|
36 | + define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | + define("DL_DIST", 0xB4); // 180 |
|
38 | + define("DL_USER_AB", 0xB5); // 181 |
|
39 | + define("DL_DIST_AB", 0xB6); // 182 |
|
40 | 40 | |
41 | 41 | // @FIXME these needs to be changed in mapitags.php |
42 | 42 |
@@ -2067,9 +2067,9 @@ discard block |
||
2067 | 2067 | $messageProps = []; |
2068 | 2068 | // It stores the values that is exception allowed or not false -> not allowed |
2069 | 2069 | $isExceptionAllowed = true; |
2070 | - $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2071 | - $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2072 | - $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2070 | + $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2071 | + $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2072 | + $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2073 | 2073 | $properties = $GLOBALS['properties']->getAppointmentProperties(); |
2074 | 2074 | $send = false; |
2075 | 2075 | $oldProps = []; |
@@ -3060,7 +3060,7 @@ discard block |
||
3060 | 3060 | * convert flags of PR_MESSAGE_FLAGS property to flags that is |
3061 | 3061 | * used in mapi_message_setreadflag. |
3062 | 3062 | */ |
3063 | - $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3063 | + $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3064 | 3064 | |
3065 | 3065 | if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) { |
3066 | 3066 | $flag |= SUPPRESS_RECEIPT; |
@@ -4201,7 +4201,7 @@ discard block |
||
4201 | 4201 | try { |
4202 | 4202 | $oneoff = mapi_parseoneoff($entryid); |
4203 | 4203 | } |
4204 | - catch(MAPIException $ex) { |
|
4204 | + catch (MAPIException $ex) { |
|
4205 | 4205 | error_log(sprintf( |
4206 | 4206 | "readReplyRecipientEntry unable to open AB entry and mapi_parseoneoff failed: %s - %s", |
4207 | 4207 | get_mapi_error_name($ex->getCode()), |
@@ -178,13 +178,13 @@ discard block |
||
178 | 178 | $user = $this->getUser($store_props[PR_USER_ENTRYID]); |
179 | 179 | |
180 | 180 | // receive userdata |
181 | - $user_props = [ PR_ASSISTANT, PR_ASSISTANT_TELEPHONE_NUMBER, PR_BUSINESS2_TELEPHONE_NUMBER, PR_BUSINESS_TELEPHONE_NUMBER, |
|
181 | + $user_props = [PR_ASSISTANT, PR_ASSISTANT_TELEPHONE_NUMBER, PR_BUSINESS2_TELEPHONE_NUMBER, PR_BUSINESS_TELEPHONE_NUMBER, |
|
182 | 182 | PR_COMPANY_NAME, PR_COUNTRY, PR_DEPARTMENT_NAME, PR_DISPLAY_NAME, |
183 | 183 | PR_EMAIL_ADDRESS, PR_EMS_AB_THUMBNAIL_PHOTO, PR_GIVEN_NAME, PR_HOME2_TELEPHONE_NUMBER, |
184 | 184 | PR_STREET_ADDRESS, PR_HOME_TELEPHONE_NUMBER, PR_INITIALS, PR_LOCALITY, |
185 | 185 | PR_MOBILE_TELEPHONE_NUMBER, PR_OFFICE_LOCATION, PR_PAGER_TELEPHONE_NUMBER, PR_POSTAL_CODE, |
186 | 186 | PR_PRIMARY_FAX_NUMBER, PR_PRIMARY_TELEPHONE_NUMBER, PR_SEARCH_KEY, PR_SMTP_ADDRESS, |
187 | - PR_STATE_OR_PROVINCE, PR_SURNAME, PR_TITLE ]; |
|
187 | + PR_STATE_OR_PROVINCE, PR_SURNAME, PR_TITLE]; |
|
188 | 188 | |
189 | 189 | $user_props = mapi_getprops($user, $user_props); |
190 | 190 | |
@@ -1094,7 +1094,7 @@ discard block |
||
1094 | 1094 | // Postfix display name of every contact folder with respective owner name |
1095 | 1095 | // it is mandatory to keep display-name different |
1096 | 1096 | $userStoreProps = mapi_getprops($openedUserStore, [PR_MAILBOX_OWNER_NAME]); |
1097 | - for ($i = 0,$len = count($userContactFolders); $i < $len; ++$i) { |
|
1097 | + for ($i = 0, $len = count($userContactFolders); $i < $len; ++$i) { |
|
1098 | 1098 | $userContactFolders[$i][PR_DISPLAY_NAME] = $userContactFolders[$i][PR_DISPLAY_NAME] . " - " . $userStoreProps[PR_MAILBOX_OWNER_NAME]; |
1099 | 1099 | } |
1100 | 1100 | |
@@ -1118,7 +1118,7 @@ discard block |
||
1118 | 1118 | |
1119 | 1119 | // Create the lists of store entryids, folder entryids and folder names to be added |
1120 | 1120 | // to the profile section |
1121 | - for ($i = 0,$len = count($contactFolders); $i < $len; ++$i) { |
|
1121 | + for ($i = 0, $len = count($contactFolders); $i < $len; ++$i) { |
|
1122 | 1122 | $contact_store_entryids[] = $contactFolders[$i][PR_STORE_ENTRYID]; |
1123 | 1123 | $contact_folder_entryids[] = $contactFolders[$i][PR_ENTRYID]; |
1124 | 1124 | $contact_folder_names[] = $contactFolders[$i][PR_DISPLAY_NAME]; |