@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | if ($data_orig_strs[$i]['length'] > 0) { // fread does not accept length=0 |
390 | 390 | $length = $data_orig_strs[$i]['length']; |
391 | 391 | $orig_str = unpack('a' . $length . 'str', fread($fp, $length)); |
392 | - $translation_data[$i]['msgid'] = $orig_str['str']; // unpack converts to array :S |
|
392 | + $translation_data[$i]['msgid'] = $orig_str['str']; // unpack converts to array :S |
|
393 | 393 | |
394 | 394 | // Find context in the original string |
395 | 395 | if (strpos($translation_data[$i]['msgid'], "\004") !== false) { |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | if ($data_transl_strs[$i]['length'] > 0) { // fread does not accept length=0 |
417 | 417 | $length = $data_transl_strs[$i]['length']; |
418 | 418 | $trans_str = unpack('a' . $length . 'str', fread($fp, $length)); |
419 | - $translation_data[$i]['msgstr'] = $trans_str['str']; // unpack converts to array :S |
|
419 | + $translation_data[$i]['msgstr'] = $trans_str['str']; // unpack converts to array :S |
|
420 | 420 | |
421 | 421 | // If there are plural forms in the source string, |
422 | 422 | // then the translated string must contain plural |
@@ -2192,9 +2192,9 @@ discard block |
||
2192 | 2192 | $messageProps = []; |
2193 | 2193 | // It stores the values that is exception allowed or not false -> not allowed |
2194 | 2194 | $isExceptionAllowed = true; |
2195 | - $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2196 | - $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2197 | - $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2195 | + $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2196 | + $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2197 | + $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2198 | 2198 | $properties = $GLOBALS['properties']->getAppointmentProperties(); |
2199 | 2199 | $send = false; |
2200 | 2200 | $oldProps = []; |
@@ -3115,7 +3115,7 @@ discard block |
||
3115 | 3115 | * convert flags of PR_MESSAGE_FLAGS property to flags that is |
3116 | 3116 | * used in mapi_message_setreadflag. |
3117 | 3117 | */ |
3118 | - $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3118 | + $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3119 | 3119 | |
3120 | 3120 | if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) { |
3121 | 3121 | $flag |= SUPPRESS_RECEIPT; |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | $entryId = strtoupper($entryid); |
56 | 56 | |
57 | 57 | $res = [ |
58 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
59 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
60 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
61 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
62 | - 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
63 | - 'server' => '', // CHAR, variable length |
|
64 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
58 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
59 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
60 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
61 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
62 | + 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
63 | + 'server' => '', // CHAR, variable length |
|
64 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
65 | 65 | ]; |
66 | 66 | |
67 | 67 | $res['length'] = strlen($entryId); |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | $entryId = strtoupper($entryid); |
101 | 101 | |
102 | 102 | $res = [ |
103 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
104 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
105 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
106 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
107 | - 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
108 | - 'server' => '', // CHAR, variable length |
|
109 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
103 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
104 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
105 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
106 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
107 | + 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
108 | + 'server' => '', // CHAR, variable length |
|
109 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
110 | 110 | ]; |
111 | 111 | |
112 | 112 | $res['length'] = strlen($entryId); |
@@ -185,13 +185,13 @@ discard block |
||
185 | 185 | $entryId = strtoupper($entryId); |
186 | 186 | |
187 | 187 | $res = [ |
188 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
189 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
190 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
191 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
192 | - 'id' => '', // ULONG, 16 bytes, 32 hex characters |
|
193 | - 'extid' => '', // CHAR, variable length |
|
194 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
188 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
189 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
190 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
191 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
192 | + 'id' => '', // ULONG, 16 bytes, 32 hex characters |
|
193 | + 'extid' => '', // CHAR, variable length |
|
194 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
195 | 195 | ]; |
196 | 196 | |
197 | 197 | $res['length'] = strlen($entryId); |
@@ -636,8 +636,7 @@ discard block |
||
636 | 636 | } |
637 | 637 | } |
638 | 638 | elseif ($checkValue !== null && $val != $checkValue) { |
639 | - $user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() : |
|
640 | - "<mapisession not yet initialized>"; |
|
639 | + $user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() : "<mapisession not yet initialized>"; |
|
641 | 640 | error_log(sprintf( |
642 | 641 | "Unexpected value in store entryid for user %s. Entryid: %s key: '%s' value: '%s' expected: %s", |
643 | 642 | $user, |
@@ -667,13 +666,13 @@ discard block |
||
667 | 666 | $entryId = strtoupper($entryId); |
668 | 667 | |
669 | 668 | $res = [ |
670 | - 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
671 | - 'messagetype' => '', // UINT, 2 bytes, 4 hex characters |
|
672 | - 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
673 | - 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
674 | - 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
675 | - 'messagedbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
676 | - 'messagecounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
669 | + 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
670 | + 'messagetype' => '', // UINT, 2 bytes, 4 hex characters |
|
671 | + 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
672 | + 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
673 | + 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
674 | + 'messagedbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
675 | + 'messagecounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
677 | 676 | ]; |
678 | 677 | |
679 | 678 | if (!$entryId) { |
@@ -733,12 +732,12 @@ discard block |
||
733 | 732 | $entryId = strtoupper($entryId); |
734 | 733 | |
735 | 734 | $res = [ |
736 | - 'abflags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
737 | - 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
738 | - 'foldertype' => '', // UINT, 2 bytes, 4 hex characters |
|
739 | - 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
740 | - 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
741 | - 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
735 | + 'abflags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
736 | + 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
737 | + 'foldertype' => '', // UINT, 2 bytes, 4 hex characters |
|
738 | + 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
739 | + 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
740 | + 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
742 | 741 | ]; |
743 | 742 | |
744 | 743 | if (!$entryId) { |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | else { |
1127 | 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']); |
@@ -1201,7 +1201,7 @@ discard block |
||
1201 | 1201 | else { |
1202 | 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 | } |
@@ -28,40 +28,40 @@ discard block |
||
28 | 28 | |
29 | 29 | /* Object type */ |
30 | 30 | |
31 | -define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
32 | -define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
33 | -define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
34 | -define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
35 | -define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
36 | -define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
37 | -define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
38 | -define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
39 | -define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
40 | -define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
41 | -define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
42 | -define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
31 | +define('MAPI_STORE', 0x00000001); /* Message Store */ |
|
32 | +define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */ |
|
33 | +define('MAPI_FOLDER', 0x00000003); /* Folder */ |
|
34 | +define('MAPI_ABCONT', 0x00000004); /* Address Book Container */ |
|
35 | +define('MAPI_MESSAGE', 0x00000005); /* Message */ |
|
36 | +define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */ |
|
37 | +define('MAPI_ATTACH', 0x00000007); /* Attachment */ |
|
38 | +define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */ |
|
39 | +define('MAPI_PROFSECT', 0x00000009); /* Profile Section */ |
|
40 | +define('MAPI_STATUS', 0x0000000A); /* Status Object */ |
|
41 | +define('MAPI_SESSION', 0x0000000B); /* Session */ |
|
42 | +define('MAPI_FORMINFO', 0x0000000C); /* Form Information */ |
|
43 | 43 | |
44 | 44 | define('MV_FLAG', 0x1000); |
45 | 45 | define('MV_INSTANCE', 0x2000); |
46 | 46 | define('MVI_FLAG', MV_FLAG | MV_INSTANCE); |
47 | 47 | |
48 | -define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
49 | -define('PT_NULL', 1); /* NULL property value */ |
|
50 | -define('PT_I2', 2); /* Signed 16-bit value */ |
|
51 | -define('PT_LONG', 3); /* Signed 32-bit value */ |
|
52 | -define('PT_R4', 4); /* 4-byte floating point */ |
|
53 | -define('PT_DOUBLE', 5); /* Floating point double */ |
|
54 | -define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
55 | -define('PT_APPTIME', 7); /* Application time */ |
|
56 | -define('PT_ERROR', 10); /* 32-bit error value */ |
|
57 | -define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
58 | -define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
59 | -define('PT_I8', 20); /* 8-byte signed integer */ |
|
60 | -define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
61 | -define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
62 | -define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
63 | -define('PT_CLSID', 72); /* OLE GUID */ |
|
64 | -define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
48 | +define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */ |
|
49 | +define('PT_NULL', 1); /* NULL property value */ |
|
50 | +define('PT_I2', 2); /* Signed 16-bit value */ |
|
51 | +define('PT_LONG', 3); /* Signed 32-bit value */ |
|
52 | +define('PT_R4', 4); /* 4-byte floating point */ |
|
53 | +define('PT_DOUBLE', 5); /* Floating point double */ |
|
54 | +define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/ 4 digits right of decimal pt) */ |
|
55 | +define('PT_APPTIME', 7); /* Application time */ |
|
56 | +define('PT_ERROR', 10); /* 32-bit error value */ |
|
57 | +define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */ |
|
58 | +define('PT_OBJECT', 13); /* Embedded object in a property */ |
|
59 | +define('PT_I8', 20); /* 8-byte signed integer */ |
|
60 | +define('PT_STRING8', 30); /* Null terminated 8-bit character string */ |
|
61 | +define('PT_UNICODE', 31); /* Null terminated Unicode string */ |
|
62 | +define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */ |
|
63 | +define('PT_CLSID', 72); /* OLE GUID */ |
|
64 | +define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */ |
|
65 | 65 | /* Changes are likely to these numbers, and to their structures. */ |
66 | 66 | |
67 | 67 | /* Alternate property type names for ease of use */ |
@@ -202,14 +202,14 @@ discard block |
||
202 | 202 | |
203 | 203 | /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */ |
204 | 204 | |
205 | -define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
206 | -define('MAPI_AB', 34); /* Address Book */ |
|
207 | -define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
208 | -define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
209 | -define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
210 | -define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
211 | -define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
212 | -define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
205 | +define('MAPI_STORE_PROVIDER', 33); /* Message Store */ |
|
206 | +define('MAPI_AB', 34); /* Address Book */ |
|
207 | +define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */ |
|
208 | +define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */ |
|
209 | +define('MAPI_SPOOLER', 37); /* Message Spooler */ |
|
210 | +define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */ |
|
211 | +define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */ |
|
212 | +define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */ |
|
213 | 213 | define('STATUS_VALIDATE_STATE', 0x00000001); |
214 | 214 | define('STATUS_SETTINGS_DIALOG', 0x00000002); |
215 | 215 | define('STATUS_CHANGE_PASSWORD', 0x00000004); |
@@ -255,10 +255,10 @@ discard block |
||
255 | 255 | define('MODRECIP_MODIFY', 0x00000004); |
256 | 256 | define('MODRECIP_REMOVE', 0x00000008); |
257 | 257 | |
258 | -define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
259 | -define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
260 | -define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
261 | -define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
258 | +define('MAPI_ORIG', 0); /* Recipient is message originator */ |
|
259 | +define('MAPI_TO', 1); /* Recipient is a primary recipient */ |
|
260 | +define('MAPI_CC', 2); /* Recipient is a copy recipient */ |
|
261 | +define('MAPI_BCC', 3); /* Recipient is blind copy recipient */ |
|
262 | 262 | |
263 | 263 | /* IAttach Interface ------------------------------------------------------- */ |
264 | 264 | |
@@ -450,23 +450,23 @@ discard block |
||
450 | 450 | define('BMR_NEZ', 0x00000001); |
451 | 451 | |
452 | 452 | /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */ |
453 | -define('VALUE', 0); // propval |
|
454 | -define('RELOP', 1); // compare method |
|
455 | -define('FUZZYLEVEL', 2); // string search flags |
|
456 | -define('CB', 3); // size restriction |
|
457 | -define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
458 | -define('ULMASK', 5); // bitmask |
|
459 | -define('ULPROPTAG', 6); // property |
|
460 | -define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
461 | -define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
462 | -define('PROPS', 9); // RES_COMMENT properties |
|
463 | -define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
453 | +define('VALUE', 0); // propval |
|
454 | +define('RELOP', 1); // compare method |
|
455 | +define('FUZZYLEVEL', 2); // string search flags |
|
456 | +define('CB', 3); // size restriction |
|
457 | +define('ULTYPE', 4); // bit mask restriction type BMR_xxx |
|
458 | +define('ULMASK', 5); // bitmask |
|
459 | +define('ULPROPTAG', 6); // property |
|
460 | +define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property |
|
461 | +define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property |
|
462 | +define('PROPS', 9); // RES_COMMENT properties |
|
463 | +define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction |
|
464 | 464 | |
465 | 465 | /* GUID's for PR_MDB_PROVIDER */ |
466 | -define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store |
|
467 | -define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
468 | -define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store |
|
469 | -define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
466 | +define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store |
|
467 | +define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store |
|
468 | +define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store |
|
469 | +define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store |
|
470 | 470 | |
471 | 471 | /* global profile section guid */ |
472 | 472 | define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}")); |
@@ -595,38 +595,38 @@ discard block |
||
595 | 595 | define('SYNC_NO_FOREIGN_KEYS', 0x100); |
596 | 596 | define('SYNC_LIMITED_IMESSAGE', 0x200); |
597 | 597 | define('SYNC_CATCHUP', 0x400); |
598 | -define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
599 | -define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
598 | +define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange() |
|
599 | +define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients. |
|
600 | 600 | define('SYNC_BEST_BODY', 0x2000); |
601 | 601 | define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000); |
602 | -define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
602 | +define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode |
|
603 | 603 | define('SYNC_FXRECOVERMODE', 0x10000); |
604 | 604 | define('SYNC_DEFER_CONFIG', 0x20000); |
605 | -define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
606 | -define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
605 | +define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties |
|
606 | +define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only |
|
607 | 607 | |
608 | -define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
608 | +define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches |
|
609 | 609 | |
610 | -define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
610 | +define('TBL_BATCH', 0x00000002); // Batch multiple table commands |
|
611 | 611 | |
612 | 612 | /* Flags for recipients in exceptions */ |
613 | -define('recipSendable', 0x00000001); // sendable attendee. |
|
614 | -define('recipOrganizer', 0x00000002); // meeting organizer |
|
615 | -define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
616 | -define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
617 | -define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
613 | +define('recipSendable', 0x00000001); // sendable attendee. |
|
614 | +define('recipOrganizer', 0x00000002); // meeting organizer |
|
615 | +define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception |
|
616 | +define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting |
|
617 | +define('recipOriginal', 0x00000100); // recipient is an original Attendee |
|
618 | 618 | define('recipReserved', 0x00000200); |
619 | 619 | |
620 | 620 | /* Flags which indicates type of Meeting Object */ |
621 | -define('mtgEmpty', 0x00000000); // Unspecified. |
|
622 | -define('mtgRequest', 0x00000001); // Initial meeting request. |
|
623 | -define('mtgFull', 0x00010000); // Full update. |
|
624 | -define('mtgInfo', 0x00020000); // Informational update. |
|
625 | -define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
626 | -define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
627 | - |
|
628 | -define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
629 | -define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
621 | +define('mtgEmpty', 0x00000000); // Unspecified. |
|
622 | +define('mtgRequest', 0x00000001); // Initial meeting request. |
|
623 | +define('mtgFull', 0x00010000); // Full update. |
|
624 | +define('mtgInfo', 0x00020000); // Informational update. |
|
625 | +define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one. |
|
626 | +define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects. |
|
627 | + |
|
628 | +define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids. |
|
629 | +define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not. |
|
630 | 630 | |
631 | 631 | /* Mask flags for mapi_msgstore_advise */ |
632 | 632 | define('fnevCriticalError', 0x00000001); |
@@ -1896,7 +1896,7 @@ |
||
1896 | 1896 | } |
1897 | 1897 | elseif ($this->recur['regen']) { |
1898 | 1898 | $year_starttime = $this->gmtime($now); |
1899 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1899 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1900 | 1900 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1901 | 1901 | |
1902 | 1902 | if ($now <= $dayend) { |
@@ -360,7 +360,7 @@ |
||
360 | 360 | ]; |
361 | 361 | $fileDependencies[$filename] = [ |
362 | 362 | 'depends' => [], |
363 | - 'core' => $core, // Based on tag or on class or on file path? |
|
363 | + 'core' => $core, // Based on tag or on class or on file path? |
|
364 | 364 | ]; |
365 | 365 | |
366 | 366 | for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) { |
@@ -6,8 +6,8 @@ |
||
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
9 | - * Status codes returned by MAPI functions. |
|
10 | - */ |
|
9 | + * Status codes returned by MAPI functions. |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | /* From winerror.h */ |
13 | 13 | // |
@@ -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; |