@@ -353,44 +353,44 @@ |
||
| 353 | 353 | $result = true; |
| 354 | 354 | |
| 355 | 355 | switch ($loader) { |
| 356 | - case LOAD_RELEASE: |
|
| 357 | - if (!is_file(BASE_PATH . '/client/grommunio.js')) { |
|
| 358 | - $this->error('<strong>LOAD_RELEASE configured, but no release files found</strong>', $help_msg); |
|
| 359 | - $result = false; |
|
| 360 | - } elseif (is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 361 | - $this->error('<strong>LOAD_RELEASE configured, but source files were found</strong>', $help_msg); |
|
| 362 | - $result = false; |
|
| 363 | - } |
|
| 356 | + case LOAD_RELEASE: |
|
| 357 | + if (!is_file(BASE_PATH . '/client/grommunio.js')) { |
|
| 358 | + $this->error('<strong>LOAD_RELEASE configured, but no release files found</strong>', $help_msg); |
|
| 359 | + $result = false; |
|
| 360 | + } elseif (is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 361 | + $this->error('<strong>LOAD_RELEASE configured, but source files were found</strong>', $help_msg); |
|
| 362 | + $result = false; |
|
| 363 | + } |
|
| 364 | 364 | |
| 365 | - break; |
|
| 365 | + break; |
|
| 366 | 366 | |
| 367 | - case LOAD_DEBUG: |
|
| 368 | - if (!is_file(BASE_PATH . '/client/zarafa-debug.js')) { |
|
| 369 | - $this->error('<strong>LOAD_DEBUG configured, but no debug files found</strong>', $help_msg); |
|
| 370 | - $result = false; |
|
| 371 | - } elseif (is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 372 | - $this->error('<strong>LOAD_DEBUG configured, but source files were found</strong>', $help_msg); |
|
| 373 | - $result = false; |
|
| 374 | - } |
|
| 367 | + case LOAD_DEBUG: |
|
| 368 | + if (!is_file(BASE_PATH . '/client/zarafa-debug.js')) { |
|
| 369 | + $this->error('<strong>LOAD_DEBUG configured, but no debug files found</strong>', $help_msg); |
|
| 370 | + $result = false; |
|
| 371 | + } elseif (is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 372 | + $this->error('<strong>LOAD_DEBUG configured, but source files were found</strong>', $help_msg); |
|
| 373 | + $result = false; |
|
| 374 | + } |
|
| 375 | 375 | |
| 376 | - break; |
|
| 376 | + break; |
|
| 377 | 377 | |
| 378 | - case LOAD_SOURCE: |
|
| 379 | - if (!is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 380 | - $this->error('<strong>LOAD_SOURCE configured, but no source files found</strong>', $help_msg); |
|
| 381 | - $result = false; |
|
| 382 | - } elseif (is_file(BASE_PATH . '/client/grommunio.js') || is_file(BASE_PATH . '/client/zarafa-debug.js')) { |
|
| 383 | - $this->error('<strong>LOAD_SOURCE configured, but release & debug file were found</strong>', $help_msg); |
|
| 384 | - $result = false; |
|
| 385 | - } |
|
| 378 | + case LOAD_SOURCE: |
|
| 379 | + if (!is_dir(BASE_PATH . '/client/zarafa')) { |
|
| 380 | + $this->error('<strong>LOAD_SOURCE configured, but no source files found</strong>', $help_msg); |
|
| 381 | + $result = false; |
|
| 382 | + } elseif (is_file(BASE_PATH . '/client/grommunio.js') || is_file(BASE_PATH . '/client/zarafa-debug.js')) { |
|
| 383 | + $this->error('<strong>LOAD_SOURCE configured, but release & debug file were found</strong>', $help_msg); |
|
| 384 | + $result = false; |
|
| 385 | + } |
|
| 386 | 386 | |
| 387 | - break; |
|
| 387 | + break; |
|
| 388 | 388 | |
| 389 | - default: |
|
| 390 | - $this->error('<strong>Unknown \'DEBUG_LOADER\' value: ' . $loader . '</strong>', $help_msg); |
|
| 391 | - $result = false; |
|
| 389 | + default: |
|
| 390 | + $this->error('<strong>Unknown \'DEBUG_LOADER\' value: ' . $loader . '</strong>', $help_msg); |
|
| 391 | + $result = false; |
|
| 392 | 392 | |
| 393 | - break; |
|
| 393 | + break; |
|
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | return $result; |
@@ -23,8 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | # Replicate value logic from php-src/ext/zlib/zlib.c |
| 25 | 25 | $sv = ini_get('zlib.output_compression'); |
| 26 | - $sv = 0 == strcasecmp($sv, 'on') ? 1 : |
|
| 27 | - (0 == strcasecmp($sv, 'off') ? 0 : intval($sv)); |
|
| 26 | + $sv = 0 == strcasecmp($sv, 'on') ? 1 : (0 == strcasecmp($sv, 'off') ? 0 : intval($sv)); |
|
| 28 | 27 | if (0 != $sv) { |
| 29 | 28 | $this->error_config('zlib.output_compression', 'off', 'With this option enabled, it could occur that XMLHTTP requests will fail'); |
| 30 | 29 | } |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | if ($data_orig_strs[$i]['length'] > 0) { // fread does not accept length=0 |
| 389 | 389 | $length = $data_orig_strs[$i]['length']; |
| 390 | 390 | $orig_str = unpack('a' . $length . 'str', fread($fp, $length)); |
| 391 | - $translation_data[$i]['msgid'] = $orig_str['str']; // unpack converts to array :S |
|
| 391 | + $translation_data[$i]['msgid'] = $orig_str['str']; // unpack converts to array :S |
|
| 392 | 392 | |
| 393 | 393 | // Find context in the original string |
| 394 | 394 | if (false !== strpos($translation_data[$i]['msgid'], "\004")) { |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | if ($data_transl_strs[$i]['length'] > 0) { // fread does not accept length=0 |
| 415 | 415 | $length = $data_transl_strs[$i]['length']; |
| 416 | 416 | $trans_str = unpack('a' . $length . 'str', fread($fp, $length)); |
| 417 | - $translation_data[$i]['msgstr'] = $trans_str['str']; // unpack converts to array :S |
|
| 417 | + $translation_data[$i]['msgstr'] = $trans_str['str']; // unpack converts to array :S |
|
| 418 | 418 | |
| 419 | 419 | // If there are plural forms in the source string, |
| 420 | 420 | // then the translated string must contain plural |
@@ -662,23 +662,23 @@ |
||
| 662 | 662 | $props = mapi_getprops($store, [PR_DISPLAY_NAME]); |
| 663 | 663 | |
| 664 | 664 | switch ($e->getCode()) { |
| 665 | - case MAPI_E_NO_ACCESS: |
|
| 666 | - $msg = 'Unable to open FINDER_ROOT for store: %s.'; |
|
| 667 | - error_log(sprintf($msg, $props[PR_DISPLAY_NAME])); |
|
| 665 | + case MAPI_E_NO_ACCESS: |
|
| 666 | + $msg = 'Unable to open FINDER_ROOT for store: %s.'; |
|
| 667 | + error_log(sprintf($msg, $props[PR_DISPLAY_NAME])); |
|
| 668 | 668 | |
| 669 | - break; |
|
| 669 | + break; |
|
| 670 | 670 | |
| 671 | - case MAPI_E_NOT_FOUND: |
|
| 672 | - $msg = 'Unable to open FINDER_ROOT for store: %s. Folder not found.'; |
|
| 673 | - error_log(sprintf($msg, $props[PR_DISPLAY_NAME])); |
|
| 671 | + case MAPI_E_NOT_FOUND: |
|
| 672 | + $msg = 'Unable to open FINDER_ROOT for store: %s. Folder not found.'; |
|
| 673 | + error_log(sprintf($msg, $props[PR_DISPLAY_NAME])); |
|
| 674 | 674 | |
| 675 | - break; |
|
| 675 | + break; |
|
| 676 | 676 | |
| 677 | - default: |
|
| 678 | - $msg = 'Unable to open FINDER_ROOT for store: %s. Unknown MAPI Error %s.'; |
|
| 679 | - error_log(sprintf($msg, $props[PR_DISPLAY_NAME], get_mapi_error_name($e->getCode()))); |
|
| 677 | + default: |
|
| 678 | + $msg = 'Unable to open FINDER_ROOT for store: %s. Unknown MAPI Error %s.'; |
|
| 679 | + error_log(sprintf($msg, $props[PR_DISPLAY_NAME], get_mapi_error_name($e->getCode()))); |
|
| 680 | 680 | |
| 681 | - break; |
|
| 681 | + break; |
|
| 682 | 682 | } |
| 683 | 683 | } |
| 684 | 684 | } |
@@ -2169,9 +2169,9 @@ discard block |
||
| 2169 | 2169 | $messageProps = []; |
| 2170 | 2170 | // It stores the values that is exception allowed or not false -> not allowed |
| 2171 | 2171 | $isExceptionAllowed = true; |
| 2172 | - $delete = 'delete' == $actionType; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
| 2173 | - $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
| 2174 | - $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
| 2172 | + $delete = 'delete' == $actionType; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
| 2173 | + $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
| 2174 | + $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
| 2175 | 2175 | $properties = $GLOBALS['properties']->getAppointmentProperties(); |
| 2176 | 2176 | $send = false; |
| 2177 | 2177 | $oldProps = []; |
@@ -3072,7 +3072,7 @@ discard block |
||
| 3072 | 3072 | * convert flags of PR_MESSAGE_FLAGS property to flags that is |
| 3073 | 3073 | * used in mapi_message_setreadflag. |
| 3074 | 3074 | */ |
| 3075 | - $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
| 3075 | + $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
| 3076 | 3076 | |
| 3077 | 3077 | if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && false == $msg_action['send_read_receipt']) { |
| 3078 | 3078 | $flag |= SUPPRESS_RECEIPT; |
@@ -386,13 +386,13 @@ discard block |
||
| 386 | 386 | $entryId = strtoupper($entryId); |
| 387 | 387 | |
| 388 | 388 | $res = [ |
| 389 | - 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 390 | - 'messagetype' => '', // UINT, 2 bytes, 4 hex characters |
|
| 391 | - 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 392 | - 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 393 | - 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
| 394 | - 'messagedbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 395 | - 'messagecounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 389 | + 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 390 | + 'messagetype' => '', // UINT, 2 bytes, 4 hex characters |
|
| 391 | + 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 392 | + 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 393 | + 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
| 394 | + 'messagedbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 395 | + 'messagecounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 396 | 396 | ]; |
| 397 | 397 | |
| 398 | 398 | if (!$entryId) { |
@@ -452,12 +452,12 @@ discard block |
||
| 452 | 452 | $entryId = strtoupper($entryId); |
| 453 | 453 | |
| 454 | 454 | $res = [ |
| 455 | - 'abflags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 456 | - 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 457 | - 'foldertype' => '', // UINT, 2 bytes, 4 hex characters |
|
| 458 | - 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 459 | - 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 460 | - 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
| 455 | + 'abflags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 456 | + 'providerguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 457 | + 'foldertype' => '', // UINT, 2 bytes, 4 hex characters |
|
| 458 | + 'folderdbguid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 459 | + 'foldercounter' => '', // ULONG, 6 bytes, 12 hex characters |
|
| 460 | + 'padding' => '', // TCHAR[3], 2 bytes, 4 hex characters |
|
| 461 | 461 | ]; |
| 462 | 462 | |
| 463 | 463 | if (!$entryId) { |
@@ -513,13 +513,13 @@ discard block |
||
| 513 | 513 | $entryId = strtoupper($entryid); |
| 514 | 514 | |
| 515 | 515 | $res = [ |
| 516 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 517 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 518 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 519 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 520 | - 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
| 521 | - 'server' => '', // CHAR, variable length |
|
| 522 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 516 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 517 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 518 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 519 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 520 | + 'uniqueId' => '', // ULONG, 16 bytes, 32 hex characters |
|
| 521 | + 'server' => '', // CHAR, variable length |
|
| 522 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 523 | 523 | ]; |
| 524 | 524 | |
| 525 | 525 | $res['length'] = strlen($entryId); |
@@ -558,13 +558,13 @@ discard block |
||
| 558 | 558 | $entryId = strtoupper($entryid); |
| 559 | 559 | |
| 560 | 560 | $res = [ |
| 561 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 562 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 563 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 564 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 565 | - 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 566 | - 'server' => '', // CHAR, variable length |
|
| 567 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 561 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 562 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 563 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 564 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 565 | + 'id' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 566 | + 'server' => '', // CHAR, variable length |
|
| 567 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 568 | 568 | ]; |
| 569 | 569 | |
| 570 | 570 | $res['length'] = strlen($entryId); |
@@ -643,13 +643,13 @@ discard block |
||
| 643 | 643 | $entryId = strtoupper($entryId); |
| 644 | 644 | |
| 645 | 645 | $res = [ |
| 646 | - 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 647 | - 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 648 | - 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 649 | - 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 650 | - 'id' => '', // ULONG, 16 bytes, 32 hex characters |
|
| 651 | - 'extid' => '', // CHAR, variable length |
|
| 652 | - 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 646 | + 'abFlags' => '', // BYTE[4], 4 bytes, 8 hex characters |
|
| 647 | + 'guid' => '', // GUID, 16 bytes, 32 hex characters |
|
| 648 | + 'version' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 649 | + 'type' => '', // ULONG, 4 bytes, 8 hex characters |
|
| 650 | + 'id' => '', // ULONG, 16 bytes, 32 hex characters |
|
| 651 | + 'extid' => '', // CHAR, variable length |
|
| 652 | + 'padding' => '', // TCHAR[3], 4 bytes, 8 hex characters (upto 4 bytes) |
|
| 653 | 653 | ]; |
| 654 | 654 | |
| 655 | 655 | $res['length'] = strlen($entryId); |
@@ -747,8 +747,7 @@ discard block |
||
| 747 | 747 | return false; |
| 748 | 748 | } |
| 749 | 749 | } elseif (null !== $checkValue && $val != $checkValue) { |
| 750 | - $user = null !== $GLOBALS['mapisession'] ? $GLOBALS['mapisession']->getUserName() : |
|
| 751 | - '<mapisession not yet initialized>'; |
|
| 750 | + $user = null !== $GLOBALS['mapisession'] ? $GLOBALS['mapisession']->getUserName() : '<mapisession not yet initialized>'; |
|
| 752 | 751 | error_log(sprintf( |
| 753 | 752 | "Unexpected value in store entryid for user %s. Entryid: %s key: '%s' value: '%s' expected: %s", |
| 754 | 753 | $user, |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | * carried in the IPM.TaskRequest item (although this information seems |
| 20 | 20 | * redundant due to that information already being available in PR_MESSAGE_CLASS). |
| 21 | 21 | */ |
| 22 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
| 23 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
| 24 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
| 25 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
| 26 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
| 27 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
| 22 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
| 23 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
| 24 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
| 25 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
| 26 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
| 27 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
| 28 | 28 | |
| 29 | 29 | /* The TaskHistory is used to show the last action on the task |
| 30 | 30 | * on both the assigner and the assignee's side. |
@@ -34,22 +34,22 @@ discard block |
||
| 34 | 34 | * the format 'Accepted by <user> on 01-01-2010 11:00'. |
| 35 | 35 | */ |
| 36 | 36 | define('thNone', 0); |
| 37 | - define('thAccepted', 1); // Set by assignee |
|
| 38 | - define('thDeclined', 2); // Set by assignee |
|
| 39 | - define('thUpdated', 3); // Set by assignee |
|
| 37 | + define('thAccepted', 1); // Set by assignee |
|
| 38 | + define('thDeclined', 2); // Set by assignee |
|
| 39 | + define('thUpdated', 3); // Set by assignee |
|
| 40 | 40 | define('thDueDateChanged', 4); |
| 41 | - define('thAssigned', 5); // Set by assigner |
|
| 41 | + define('thAssigned', 5); // Set by assigner |
|
| 42 | 42 | |
| 43 | 43 | /* The TaskState value is used to differentiate the version of a task |
| 44 | 44 | * in the assigner's folder and the version in the |
| 45 | 45 | * assignee's folder. The buttons shown depend on this and |
| 46 | 46 | * the 'taskaccepted' boolean (for the assignee) |
| 47 | 47 | */ |
| 48 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
| 49 | - define('tdsOWNNEW', 1); // Not assigned |
|
| 50 | - define('tdsOWN', 2); // Assignee version |
|
| 51 | - define('tdsACC', 3); // Assigner version |
|
| 52 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
| 48 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
| 49 | + define('tdsOWNNEW', 1); // Not assigned |
|
| 50 | + define('tdsOWN', 2); // Assignee version |
|
| 51 | + define('tdsACC', 3); // Assigner version |
|
| 52 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
| 53 | 53 | |
| 54 | 54 | /* The TaskAcceptanceState is used for the assigner to indicate state */ |
| 55 | 55 | define('olTaskNotDelegated', 0); |
@@ -59,13 +59,13 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /* The task ownership indicates the role of the current user relative to the task. */ |
| 61 | 61 | define('olNewTask', 0); |
| 62 | - define('olDelegatedTask', 1); // Task has been assigned |
|
| 63 | - define('olOwnTask', 2); // Task owned |
|
| 62 | + define('olDelegatedTask', 1); // Task has been assigned |
|
| 63 | + define('olOwnTask', 2); // Task owned |
|
| 64 | 64 | |
| 65 | 65 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */ |
| 66 | 66 | define('tmrNone', 0); |
| 67 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
| 68 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
| 67 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
| 68 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
| 69 | 69 | |
| 70 | 70 | // Task icon index. |
| 71 | 71 | define('ICON_TASK_ASSIGNEE', 0x00000502); |
@@ -502,12 +502,12 @@ discard block |
||
| 502 | 502 | // Set properties on Task Request |
| 503 | 503 | mapi_setprops($this->message, [ |
| 504 | 504 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
| 505 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 506 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 507 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 505 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 506 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 507 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 508 | 508 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
| 509 | 509 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
| 510 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 510 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 511 | 511 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
| 512 | 512 | PR_ICON_INDEX => ICON_TASK_ASSIGNER, |
| 513 | 513 | ]); |
@@ -524,10 +524,10 @@ discard block |
||
| 524 | 524 | |
| 525 | 525 | // Make it a task request, and put it in sent items after it is sent |
| 526 | 526 | mapi_setprops($outgoing, [ |
| 527 | - PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
| 528 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 529 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 530 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 527 | + PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
| 528 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 529 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 530 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 531 | 531 | PR_SUBJECT_PREFIX => $prefix, |
| 532 | 532 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
| 533 | 533 | ]); |
@@ -1181,7 +1181,7 @@ discard block |
||
| 1181 | 1181 | } |
| 1182 | 1182 | |
| 1183 | 1183 | foreach ($recips as $recip) { |
| 1184 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
| 1184 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
| 1185 | 1185 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
| 1186 | 1186 | } |
| 1187 | 1187 | |
@@ -1108,7 +1108,7 @@ discard block |
||
| 1108 | 1108 | } else { |
| 1109 | 1109 | $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
| 1110 | 1110 | } |
| 1111 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1111 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1112 | 1112 | } |
| 1113 | 1113 | unset($recip); |
| 1114 | 1114 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1183,7 +1183,7 @@ discard block |
||
| 1183 | 1183 | } else { |
| 1184 | 1184 | $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
| 1185 | 1185 | } |
| 1186 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1186 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1187 | 1187 | $deletedRecipients[] = $recipient; |
| 1188 | 1188 | } |
| 1189 | 1189 | } |
@@ -657,7 +657,7 @@ |
||
| 657 | 657 | /* PersistElementType Values ElementIDs for persist data of PR_IPM_OL2007_ENTRYIDS / PR_ADDITIONAL_REN_ENTRYIDS_EX */ |
| 658 | 658 | define('ELEMENT_SENTINEL', 0x0000); // 0 bytes Indicates that the PersistElement structure is the last one contained in the DataElements field of the PersistData structure. |
| 659 | 659 | define('RSF_ELID_ENTRYID', 0x0001); // variable Indicates that the ElementData field contains the entry ID of the special folder |
| 660 | - // that is of the type indicated by the value of the PersistID field of the PersistData structure. |
|
| 660 | + // that is of the type indicated by the value of the PersistID field of the PersistData structure. |
|
| 661 | 661 | define('RSF_ELID_HEADER', 0x0002); // 4 bytes Indicates that the ElementData field contains a 4-byte header value equal to 0x00000000. |
| 662 | 662 | |
| 663 | 663 | define('STGM_DIRECT', 0x00000000); |
@@ -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); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | // OR |
| 214 | 214 | [RES_OR, |
| 215 | 215 | [ |
| 216 | - [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
| 216 | + [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
| 217 | 217 | [ |
| 218 | 218 | [RES_PROPERTY, |
| 219 | 219 | [RELOP => RELOP_GT, |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | ], |
| 238 | 238 | ], |
| 239 | 239 | ], // EXISTS OR |
| 240 | - ]; // global OR |
|
| 240 | + ]; // global OR |
|
| 241 | 241 | |
| 242 | 242 | // Get requested properties, plus whatever we need |
| 243 | 243 | $proplist = [PR_ENTRYID, $properties['recurring'], $properties['recurring_data'], $properties['timezone_data']]; |
@@ -205,158 +205,158 @@ |
||
| 205 | 205 | |
| 206 | 206 | function mapi_strerror($e) { |
| 207 | 207 | switch ($e) { |
| 208 | - case S_OK: return 'success'; |
|
| 208 | + case S_OK: return 'success'; |
|
| 209 | 209 | |
| 210 | - case MAPI_E_CALL_FAILED: return 'An error of unexpected or unknown origin occurred'; |
|
| 210 | + case MAPI_E_CALL_FAILED: return 'An error of unexpected or unknown origin occurred'; |
|
| 211 | 211 | |
| 212 | - case MAPI_E_NOT_ENOUGH_MEMORY: return 'Not enough memory was available to complete the operation'; |
|
| 212 | + case MAPI_E_NOT_ENOUGH_MEMORY: return 'Not enough memory was available to complete the operation'; |
|
| 213 | 213 | |
| 214 | - case MAPI_E_INVALID_PARAMETER: return 'An invalid parameter was passed to a function or remote procedure call'; |
|
| 214 | + case MAPI_E_INVALID_PARAMETER: return 'An invalid parameter was passed to a function or remote procedure call'; |
|
| 215 | 215 | |
| 216 | - case MAPI_E_INTERFACE_NOT_SUPPORTED: return 'MAPI interface not supported'; |
|
| 216 | + case MAPI_E_INTERFACE_NOT_SUPPORTED: return 'MAPI interface not supported'; |
|
| 217 | 217 | |
| 218 | - case MAPI_E_NO_ACCESS: return 'An attempt was made to access a message store or object for which the user has insufficient permissions'; |
|
| 218 | + case MAPI_E_NO_ACCESS: return 'An attempt was made to access a message store or object for which the user has insufficient permissions'; |
|
| 219 | 219 | |
| 220 | - case MAPI_E_NO_SUPPORT: return 'Function is not implemented'; |
|
| 220 | + case MAPI_E_NO_SUPPORT: return 'Function is not implemented'; |
|
| 221 | 221 | |
| 222 | - case MAPI_E_BAD_CHARWIDTH: return 'An incompatibility exists in the character sets supported by the caller and the implementation'; |
|
| 222 | + case MAPI_E_BAD_CHARWIDTH: return 'An incompatibility exists in the character sets supported by the caller and the implementation'; |
|
| 223 | 223 | |
| 224 | - case MAPI_E_STRING_TOO_LONG: return 'In the context of this method call, a string exceeds the maximum permitted length'; |
|
| 224 | + case MAPI_E_STRING_TOO_LONG: return 'In the context of this method call, a string exceeds the maximum permitted length'; |
|
| 225 | 225 | |
| 226 | - case MAPI_E_UNKNOWN_FLAGS: return 'One or more values for a flags parameter were not valid'; |
|
| 226 | + case MAPI_E_UNKNOWN_FLAGS: return 'One or more values for a flags parameter were not valid'; |
|
| 227 | 227 | |
| 228 | - case MAPI_E_INVALID_ENTRYID: return 'invalid entryid'; |
|
| 228 | + case MAPI_E_INVALID_ENTRYID: return 'invalid entryid'; |
|
| 229 | 229 | |
| 230 | - case MAPI_E_INVALID_OBJECT: return 'A method call was made using a reference to an object that has been destroyed or is not in a viable state'; |
|
| 230 | + case MAPI_E_INVALID_OBJECT: return 'A method call was made using a reference to an object that has been destroyed or is not in a viable state'; |
|
| 231 | 231 | |
| 232 | - case MAPI_E_OBJECT_CHANGED: return 'An attempt to commit changes failed because the object was changed separately'; |
|
| 232 | + case MAPI_E_OBJECT_CHANGED: return 'An attempt to commit changes failed because the object was changed separately'; |
|
| 233 | 233 | |
| 234 | - case MAPI_E_OBJECT_DELETED: return 'An operation failed because the object was deleted separately'; |
|
| 234 | + case MAPI_E_OBJECT_DELETED: return 'An operation failed because the object was deleted separately'; |
|
| 235 | 235 | |
| 236 | - case MAPI_E_BUSY: return 'A table operation failed because a separate operation was in progress at the same time'; |
|
| 236 | + case MAPI_E_BUSY: return 'A table operation failed because a separate operation was in progress at the same time'; |
|
| 237 | 237 | |
| 238 | - case MAPI_E_NOT_ENOUGH_DISK: return 'Not enough disk space was available to complete the operation'; |
|
| 238 | + case MAPI_E_NOT_ENOUGH_DISK: return 'Not enough disk space was available to complete the operation'; |
|
| 239 | 239 | |
| 240 | - case MAPI_E_NOT_ENOUGH_RESOURCES: return 'Not enough system resources were available to complete the operation'; |
|
| 240 | + case MAPI_E_NOT_ENOUGH_RESOURCES: return 'Not enough system resources were available to complete the operation'; |
|
| 241 | 241 | |
| 242 | - case MAPI_E_NOT_FOUND: return 'The requested object could not be found at the server'; |
|
| 242 | + case MAPI_E_NOT_FOUND: return 'The requested object could not be found at the server'; |
|
| 243 | 243 | |
| 244 | - case MAPI_E_VERSION: return 'Client and server versions are not compatible'; |
|
| 244 | + case MAPI_E_VERSION: return 'Client and server versions are not compatible'; |
|
| 245 | 245 | |
| 246 | - case MAPI_E_LOGON_FAILED: return 'A client was unable to log on to the server'; |
|
| 246 | + case MAPI_E_LOGON_FAILED: return 'A client was unable to log on to the server'; |
|
| 247 | 247 | |
| 248 | - case MAPI_E_SESSION_LIMIT: return 'A server or service is unable to create any more sessions'; |
|
| 248 | + case MAPI_E_SESSION_LIMIT: return 'A server or service is unable to create any more sessions'; |
|
| 249 | 249 | |
| 250 | - case MAPI_E_USER_CANCEL: return 'An operation failed because a user cancelled it'; |
|
| 250 | + case MAPI_E_USER_CANCEL: return 'An operation failed because a user cancelled it'; |
|
| 251 | 251 | |
| 252 | - case MAPI_E_UNABLE_TO_ABORT: return 'A ropAbort or ropAbortSubmit ROP request was unsuccessful'; |
|
| 252 | + case MAPI_E_UNABLE_TO_ABORT: return 'A ropAbort or ropAbortSubmit ROP request was unsuccessful'; |
|
| 253 | 253 | |
| 254 | - case MAPI_E_NETWORK_ERROR: return 'An operation was unsuccessful because of a problem with network operations or services'; |
|
| 254 | + case MAPI_E_NETWORK_ERROR: return 'An operation was unsuccessful because of a problem with network operations or services'; |
|
| 255 | 255 | |
| 256 | - case MAPI_E_DISK_ERROR: return 'There was a problem writing to or reading from disk'; |
|
| 256 | + case MAPI_E_DISK_ERROR: return 'There was a problem writing to or reading from disk'; |
|
| 257 | 257 | |
| 258 | - case MAPI_E_TOO_COMPLEX: return 'The operation requested is too complex for the server to handle (often w.r.t. restrictions)'; |
|
| 258 | + case MAPI_E_TOO_COMPLEX: return 'The operation requested is too complex for the server to handle (often w.r.t. restrictions)'; |
|
| 259 | 259 | |
| 260 | - case MAPI_E_BAD_COLUMN: return 'The column requested is not allowed in this type of table'; |
|
| 260 | + case MAPI_E_BAD_COLUMN: return 'The column requested is not allowed in this type of table'; |
|
| 261 | 261 | |
| 262 | - case MAPI_E_EXTENDED_ERROR: return 'extended error'; |
|
| 262 | + case MAPI_E_EXTENDED_ERROR: return 'extended error'; |
|
| 263 | 263 | |
| 264 | - case MAPI_E_COMPUTED: return 'A property cannot be updated because it is read-only, computed by the server'; |
|
| 264 | + case MAPI_E_COMPUTED: return 'A property cannot be updated because it is read-only, computed by the server'; |
|
| 265 | 265 | |
| 266 | - case MAPI_E_CORRUPT_DATA: return 'There is an internal inconsistency in a database, or in a complex property value'; |
|
| 266 | + case MAPI_E_CORRUPT_DATA: return 'There is an internal inconsistency in a database, or in a complex property value'; |
|
| 267 | 267 | |
| 268 | - case MAPI_E_UNCONFIGURED: return 'unconfigured'; |
|
| 268 | + case MAPI_E_UNCONFIGURED: return 'unconfigured'; |
|
| 269 | 269 | |
| 270 | - case MAPI_E_FAILONEPROVIDER: return 'failoneprovider'; |
|
| 270 | + case MAPI_E_FAILONEPROVIDER: return 'failoneprovider'; |
|
| 271 | 271 | |
| 272 | - case MAPI_E_UNKNOWN_CPID: return 'The server is not configured to support the code page requested by the client'; |
|
| 272 | + case MAPI_E_UNKNOWN_CPID: return 'The server is not configured to support the code page requested by the client'; |
|
| 273 | 273 | |
| 274 | - case MAPI_E_UNKNOWN_LCID: return 'The server is not configured to support the locale requested by the client'; |
|
| 274 | + case MAPI_E_UNKNOWN_LCID: return 'The server is not configured to support the locale requested by the client'; |
|
| 275 | 275 | |
| 276 | - case MAPI_E_PASSWORD_CHANGE_REQUIRED: return 'password change required'; |
|
| 276 | + case MAPI_E_PASSWORD_CHANGE_REQUIRED: return 'password change required'; |
|
| 277 | 277 | |
| 278 | - case MAPI_E_PASSWORD_EXPIRED: return 'password expired'; |
|
| 278 | + case MAPI_E_PASSWORD_EXPIRED: return 'password expired'; |
|
| 279 | 279 | |
| 280 | - case MAPI_E_INVALID_WORKSTATION_ACCOUNT: return 'invalid workstation account'; |
|
| 280 | + case MAPI_E_INVALID_WORKSTATION_ACCOUNT: return 'invalid workstation account'; |
|
| 281 | 281 | |
| 282 | - case MAPI_E_INVALID_ACCESS_TIME: return 'The operation failed due to clock skew between servers'; |
|
| 282 | + case MAPI_E_INVALID_ACCESS_TIME: return 'The operation failed due to clock skew between servers'; |
|
| 283 | 283 | |
| 284 | - case MAPI_E_ACCOUNT_DISABLED: return 'account disabled'; |
|
| 284 | + case MAPI_E_ACCOUNT_DISABLED: return 'account disabled'; |
|
| 285 | 285 | |
| 286 | - case MAPI_E_END_OF_SESSION: return 'The server session has been destroyed, possibly by a server restart'; |
|
| 286 | + case MAPI_E_END_OF_SESSION: return 'The server session has been destroyed, possibly by a server restart'; |
|
| 287 | 287 | |
| 288 | - case MAPI_E_UNKNOWN_ENTRYID: return 'The EntryID passed to OpenEntry was created by a different MAPI provider'; |
|
| 288 | + case MAPI_E_UNKNOWN_ENTRYID: return 'The EntryID passed to OpenEntry was created by a different MAPI provider'; |
|
| 289 | 289 | |
| 290 | - case MAPI_E_MISSING_REQUIRED_COLUMN: return 'missing required column'; |
|
| 290 | + case MAPI_E_MISSING_REQUIRED_COLUMN: return 'missing required column'; |
|
| 291 | 291 | |
| 292 | - case MAPI_W_NO_SERVICE: return 'no service'; |
|
| 292 | + case MAPI_W_NO_SERVICE: return 'no service'; |
|
| 293 | 293 | |
| 294 | - case MAPI_E_BAD_VALUE: return 'bad value'; |
|
| 294 | + case MAPI_E_BAD_VALUE: return 'bad value'; |
|
| 295 | 295 | |
| 296 | - case MAPI_E_INVALID_TYPE: return 'invalid type'; |
|
| 296 | + case MAPI_E_INVALID_TYPE: return 'invalid type'; |
|
| 297 | 297 | |
| 298 | - case MAPI_E_TYPE_NO_SUPPORT: return 'type no support'; |
|
| 298 | + case MAPI_E_TYPE_NO_SUPPORT: return 'type no support'; |
|
| 299 | 299 | |
| 300 | - case MAPI_E_UNEXPECTED_TYPE: return 'unexpected_type'; |
|
| 300 | + case MAPI_E_UNEXPECTED_TYPE: return 'unexpected_type'; |
|
| 301 | 301 | |
| 302 | - case MAPI_E_TOO_BIG: return 'The table is too big for the requested operation to complete'; |
|
| 302 | + case MAPI_E_TOO_BIG: return 'The table is too big for the requested operation to complete'; |
|
| 303 | 303 | |
| 304 | - case MAPI_E_DECLINE_COPY: return 'The provider implements this method by calling a support object method, and the caller has passed the MAPI_DECLINE_OK flag'; |
|
| 304 | + case MAPI_E_DECLINE_COPY: return 'The provider implements this method by calling a support object method, and the caller has passed the MAPI_DECLINE_OK flag'; |
|
| 305 | 305 | |
| 306 | - case MAPI_E_UNEXPECTED_ID: return 'unexpected id'; |
|
| 306 | + case MAPI_E_UNEXPECTED_ID: return 'unexpected id'; |
|
| 307 | 307 | |
| 308 | - case MAPI_W_ERRORS_RETURNED: return 'The call succeeded, but the message store provider has error information available'; |
|
| 308 | + case MAPI_W_ERRORS_RETURNED: return 'The call succeeded, but the message store provider has error information available'; |
|
| 309 | 309 | |
| 310 | - case MAPI_E_UNABLE_TO_COMPLETE: return 'A complex operation such as building a table row set could not be completed'; |
|
| 310 | + case MAPI_E_UNABLE_TO_COMPLETE: return 'A complex operation such as building a table row set could not be completed'; |
|
| 311 | 311 | |
| 312 | - case MAPI_E_TIMEOUT: return 'An asynchronous operation did not succeed within the specified time-out'; |
|
| 312 | + case MAPI_E_TIMEOUT: return 'An asynchronous operation did not succeed within the specified time-out'; |
|
| 313 | 313 | |
| 314 | - case MAPI_E_TABLE_EMPTY: return 'A table essential to the operation is empty'; |
|
| 314 | + case MAPI_E_TABLE_EMPTY: return 'A table essential to the operation is empty'; |
|
| 315 | 315 | |
| 316 | - case MAPI_E_TABLE_TOO_BIG: return 'The table is too big for the requested operation to complete'; |
|
| 316 | + case MAPI_E_TABLE_TOO_BIG: return 'The table is too big for the requested operation to complete'; |
|
| 317 | 317 | |
| 318 | - case MAPI_E_INVALID_BOOKMARK: return 'The bookmark passed to a table operation was not created on the same table'; |
|
| 318 | + case MAPI_E_INVALID_BOOKMARK: return 'The bookmark passed to a table operation was not created on the same table'; |
|
| 319 | 319 | |
| 320 | - case MAPI_W_POSITION_CHANGED: return 'position changed'; |
|
| 320 | + case MAPI_W_POSITION_CHANGED: return 'position changed'; |
|
| 321 | 321 | |
| 322 | - case MAPI_W_APPROX_COUNT: return 'approx count'; |
|
| 322 | + case MAPI_W_APPROX_COUNT: return 'approx count'; |
|
| 323 | 323 | |
| 324 | - case MAPI_E_WAIT: return 'A wait time-out has expired'; |
|
| 324 | + case MAPI_E_WAIT: return 'A wait time-out has expired'; |
|
| 325 | 325 | |
| 326 | - case MAPI_E_CANCEL: return 'The operation had to be canceled'; |
|
| 326 | + case MAPI_E_CANCEL: return 'The operation had to be canceled'; |
|
| 327 | 327 | |
| 328 | - case MAPI_E_NOT_ME: return 'not me'; |
|
| 328 | + case MAPI_E_NOT_ME: return 'not me'; |
|
| 329 | 329 | |
| 330 | - case MAPI_W_CANCEL_MESSAGE: return 'cancel message'; |
|
| 330 | + case MAPI_W_CANCEL_MESSAGE: return 'cancel message'; |
|
| 331 | 331 | |
| 332 | - case MAPI_E_CORRUPT_STORE: return 'corrupt store'; |
|
| 332 | + case MAPI_E_CORRUPT_STORE: return 'corrupt store'; |
|
| 333 | 333 | |
| 334 | - case MAPI_E_NOT_IN_QUEUE: return 'not in queue'; |
|
| 334 | + case MAPI_E_NOT_IN_QUEUE: return 'not in queue'; |
|
| 335 | 335 | |
| 336 | - case MAPI_E_NO_SUPPRESS: return 'The server does not support the suppression of read receipts'; |
|
| 336 | + case MAPI_E_NO_SUPPRESS: return 'The server does not support the suppression of read receipts'; |
|
| 337 | 337 | |
| 338 | - case MAPI_E_COLLISION: return 'A folder or item cannot be created because one with the same name or other criteria already exists'; |
|
| 338 | + case MAPI_E_COLLISION: return 'A folder or item cannot be created because one with the same name or other criteria already exists'; |
|
| 339 | 339 | |
| 340 | - case MAPI_E_NOT_INITIALIZED: return 'The subsystem is not ready'; |
|
| 340 | + case MAPI_E_NOT_INITIALIZED: return 'The subsystem is not ready'; |
|
| 341 | 341 | |
| 342 | - case MAPI_E_NON_STANDARD: return 'non standard'; |
|
| 342 | + case MAPI_E_NON_STANDARD: return 'non standard'; |
|
| 343 | 343 | |
| 344 | - case MAPI_E_NO_RECIPIENTS: return 'A message cannot be sent because it has no recipients'; |
|
| 344 | + case MAPI_E_NO_RECIPIENTS: return 'A message cannot be sent because it has no recipients'; |
|
| 345 | 345 | |
| 346 | - case MAPI_E_SUBMITTED: return 'A message cannot be opened for modification because it has already been sent'; |
|
| 346 | + case MAPI_E_SUBMITTED: return 'A message cannot be opened for modification because it has already been sent'; |
|
| 347 | 347 | |
| 348 | - case MAPI_E_HAS_FOLDERS: return 'A folder cannot be deleted because it still contains subfolders'; |
|
| 348 | + case MAPI_E_HAS_FOLDERS: return 'A folder cannot be deleted because it still contains subfolders'; |
|
| 349 | 349 | |
| 350 | - case MAPI_E_HAS_MESSAGES: return 'A folder cannot be deleted because it still contains messages'; |
|
| 350 | + case MAPI_E_HAS_MESSAGES: return 'A folder cannot be deleted because it still contains messages'; |
|
| 351 | 351 | |
| 352 | - case MAPI_E_FOLDER_CYCLE: return 'A folder move or copy operation would create a cycle'; |
|
| 352 | + case MAPI_E_FOLDER_CYCLE: return 'A folder move or copy operation would create a cycle'; |
|
| 353 | 353 | |
| 354 | - case MAPI_W_PARTIAL_COMPLETION: return 'The call succeeded, but not all entries were successfully operated on'; |
|
| 354 | + case MAPI_W_PARTIAL_COMPLETION: return 'The call succeeded, but not all entries were successfully operated on'; |
|
| 355 | 355 | |
| 356 | - case MAPI_E_AMBIGUOUS_RECIP: return 'An unresolved recipient matches more than one directory entry'; |
|
| 356 | + case MAPI_E_AMBIGUOUS_RECIP: return 'An unresolved recipient matches more than one directory entry'; |
|
| 357 | 357 | |
| 358 | - case MAPI_E_STORE_FULL: return 'Store full'; |
|
| 358 | + case MAPI_E_STORE_FULL: return 'Store full'; |
|
| 359 | 359 | |
| 360 | - default: return sprintf('%xh', $e); |
|
| 360 | + default: return sprintf('%xh', $e); |
|
| 361 | 361 | } |
| 362 | 362 | } |