@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @return Number the event which this module handles |
| 11 | 11 | */ |
| 12 | 12 | public function getEvents() { |
| 13 | - return OBJECT_DELETE | OBJECT_SAVE; |
|
| 13 | + return OBJECT_DELETE|OBJECT_SAVE; |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | if ($stateFolder) { |
| 36 | 36 | $store = $GLOBALS["mapisession"]->getDefaultMessageStore(); |
| 37 | 37 | $username = $GLOBALS["mapisession"]->getUserName(); |
| 38 | - $hierarchyTable = mapi_folder_gethierarchytable($stateFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 38 | + $hierarchyTable = mapi_folder_gethierarchytable($stateFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 39 | 39 | $rows = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID, PR_DISPLAY_NAME]); |
| 40 | 40 | foreach ($rows as $row) { |
| 41 | 41 | $deviceStateFolder = mapi_msgstore_openentry($store, $row[PR_ENTRYID]); |
@@ -897,7 +897,7 @@ discard block |
||
| 897 | 897 | if (!$this->stateFolder) { |
| 898 | 898 | $store = $GLOBALS["mapisession"]->getDefaultMessageStore(); |
| 899 | 899 | $rootFolder = mapi_msgstore_openentry($store); |
| 900 | - $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 900 | + $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 901 | 901 | $restriction = $this->getStateFolderRestriction(PLUGIN_MDM_STORE_STATE_FOLDER); |
| 902 | 902 | mapi_table_restrict($hierarchy, $restriction); |
| 903 | 903 | if (mapi_table_getrowcount($hierarchy) == 1) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $restrict, |
| 56 | 56 | [RES_CONTENT, |
| 57 | 57 | [ |
| 58 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 58 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 59 | 59 | ULPROPTAG => PR_SUBJECT, |
| 60 | 60 | VALUE => [PR_SUBJECT => $emailAddress], |
| 61 | 61 | ], |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | } |
| 455 | 455 | |
| 456 | 456 | if (!encryptionStoreExpirationSupport()) { |
| 457 | - withPHPSession(function () use ($encryptionStore) { |
|
| 457 | + withPHPSession(function() use ($encryptionStore) { |
|
| 458 | 458 | $encryptionStore->add('smime', ''); |
| 459 | 459 | }); |
| 460 | 460 | } |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | } |
| 679 | 679 | |
| 680 | 680 | // Save the signed message as attachment of the send email |
| 681 | - $stream = mapi_openproperty($signedAttach, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 681 | + $stream = mapi_openproperty($signedAttach, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 682 | 682 | $handle = fopen($tmpSendSmimeEmail, 'r'); |
| 683 | 683 | while (!feof($handle)) { |
| 684 | 684 | $contents = fread($handle, BLOCK_SIZE); |
@@ -1003,7 +1003,7 @@ discard block |
||
| 1003 | 1003 | ]); |
| 1004 | 1004 | // Save attachment |
| 1005 | 1005 | $msgBody = base64_encode($cert); |
| 1006 | - $stream = mapi_openproperty($assocMessage, PR_BODY, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 1006 | + $stream = mapi_openproperty($assocMessage, PR_BODY, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 1007 | 1007 | mapi_stream_setsize($stream, strlen($msgBody)); |
| 1008 | 1008 | mapi_stream_write($stream, $msgBody); |
| 1009 | 1009 | mapi_stream_commit($stream); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | if ($data === CHANGE_PASSPHRASE_SUCCESS) { |
| 57 | 57 | // Reset cached passphrase. |
| 58 | 58 | $encryptionStore = EncryptionStore::getInstance(); |
| 59 | - withPHPSession(function () use ($encryptionStore) { |
|
| 59 | + withPHPSession(function() use ($encryptionStore) { |
|
| 60 | 60 | $encryptionStore->add('smime', ''); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
| 170 | 170 | } |
| 171 | 171 | else { |
| 172 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
| 172 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
| 173 | 173 | $encryptionStore->add('smime', $data['passphrase']); |
| 174 | 174 | }); |
| 175 | 175 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $privateCert = mapi_msgstore_openentry($this->store, $mapiCert[PR_ENTRYID]); |
| 266 | 266 | |
| 267 | 267 | $msgBody = base64_encode($cert); |
| 268 | - $stream = mapi_openproperty($privateCert, PR_BODY, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 268 | + $stream = mapi_openproperty($privateCert, PR_BODY, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 269 | 269 | mapi_stream_setsize($stream, strlen($msgBody)); |
| 270 | 270 | mapi_stream_write($stream, $msgBody); |
| 271 | 271 | mapi_stream_commit($stream); |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | $props[PR_EXCEPTION_ENDTIME] = $this->fromGMT($this->tz, $exception_props[$this->proptags["duedate"]]); |
| 740 | 740 | mapi_setprops($attachment, $props); |
| 741 | 741 | |
| 742 | - $imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY); |
|
| 742 | + $imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY); |
|
| 743 | 743 | |
| 744 | 744 | if ($copy_attach_from) { |
| 745 | 745 | $attachmentTable = mapi_message_getattachmenttable($copy_attach_from); |
@@ -1120,13 +1120,13 @@ discard block |
||
| 1120 | 1120 | // Remove all deleted recipients |
| 1121 | 1121 | if (isset($exception_recips['remove'])) { |
| 1122 | 1122 | foreach ($exception_recips['remove'] as &$recip) { |
| 1123 | - if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
| 1124 | - $recip[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
| 1123 | + if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
| 1124 | + $recip[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
| 1125 | 1125 | } |
| 1126 | 1126 | else { |
| 1127 | - $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
| 1127 | + $recip[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
| 1128 | 1128 | } |
| 1129 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1129 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1130 | 1130 | } |
| 1131 | 1131 | unset($recip); |
| 1132 | 1132 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1195,13 +1195,13 @@ discard block |
||
| 1195 | 1195 | |
| 1196 | 1196 | // If recipient is not in list of deleted recipient, add him |
| 1197 | 1197 | if (!$foundInDeletedRecipients) { |
| 1198 | - if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
| 1199 | - $recipient[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
| 1198 | + if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
| 1199 | + $recipient[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
| 1200 | 1200 | } |
| 1201 | 1201 | else { |
| 1202 | - $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
| 1202 | + $recipient[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
| 1203 | 1203 | } |
| 1204 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1204 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1205 | 1205 | $deletedRecipients[] = $recipient; |
| 1206 | 1206 | } |
| 1207 | 1207 | } |
@@ -1261,12 +1261,12 @@ discard block |
||
| 1261 | 1261 | $hasOrganizer = false; |
| 1262 | 1262 | // Check if meeting already has an organizer. |
| 1263 | 1263 | foreach ($recipients as $key => $recipient) { |
| 1264 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
| 1264 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
| 1265 | 1265 | $hasOrganizer = true; |
| 1266 | 1266 | } |
| 1267 | 1267 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
| 1268 | 1268 | // Recipients for an occurrence |
| 1269 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
| 1269 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
| 1270 | 1270 | } |
| 1271 | 1271 | } |
| 1272 | 1272 | |
@@ -1280,7 +1280,7 @@ discard block |
||
| 1280 | 1280 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
| 1281 | 1281 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
| 1282 | 1282 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
| 1283 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
| 1283 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
| 1284 | 1284 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
| 1285 | 1285 | |
| 1286 | 1286 | // Add organizer to recipients list. |
@@ -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 | -define('MVI_FLAG', MV_FLAG | MV_INSTANCE); |
|
| 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) */ |
|
| 46 | +define('MVI_FLAG', MV_FLAG|MV_INSTANCE); |
|
| 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) */ |
|
| 65 | 65 | /* Changes are likely to these numbers, and to their structures. */ |
| 66 | 66 | |
| 67 | 67 | /* Alternate property type names for ease of use */ |
@@ -73,18 +73,18 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | define('PT_TSTRING', PT_STRING8); |
| 75 | 75 | |
| 76 | -define('PT_MV_I2', (MV_FLAG | PT_I2)); |
|
| 77 | -define('PT_MV_LONG', (MV_FLAG | PT_LONG)); |
|
| 78 | -define('PT_MV_R4', (MV_FLAG | PT_R4)); |
|
| 79 | -define('PT_MV_DOUBLE', (MV_FLAG | PT_DOUBLE)); |
|
| 80 | -define('PT_MV_CURRENCY', (MV_FLAG | PT_CURRENCY)); |
|
| 81 | -define('PT_MV_APPTIME', (MV_FLAG | PT_APPTIME)); |
|
| 82 | -define('PT_MV_SYSTIME', (MV_FLAG | PT_SYSTIME)); |
|
| 83 | -define('PT_MV_STRING8', (MV_FLAG | PT_STRING8)); |
|
| 84 | -define('PT_MV_BINARY', (MV_FLAG | PT_BINARY)); |
|
| 85 | -define('PT_MV_UNICODE', (MV_FLAG | PT_UNICODE)); |
|
| 86 | -define('PT_MV_CLSID', (MV_FLAG | PT_CLSID)); |
|
| 87 | -define('PT_MV_I8', (MV_FLAG | PT_I8)); |
|
| 76 | +define('PT_MV_I2', (MV_FLAG|PT_I2)); |
|
| 77 | +define('PT_MV_LONG', (MV_FLAG|PT_LONG)); |
|
| 78 | +define('PT_MV_R4', (MV_FLAG|PT_R4)); |
|
| 79 | +define('PT_MV_DOUBLE', (MV_FLAG|PT_DOUBLE)); |
|
| 80 | +define('PT_MV_CURRENCY', (MV_FLAG|PT_CURRENCY)); |
|
| 81 | +define('PT_MV_APPTIME', (MV_FLAG|PT_APPTIME)); |
|
| 82 | +define('PT_MV_SYSTIME', (MV_FLAG|PT_SYSTIME)); |
|
| 83 | +define('PT_MV_STRING8', (MV_FLAG|PT_STRING8)); |
|
| 84 | +define('PT_MV_BINARY', (MV_FLAG|PT_BINARY)); |
|
| 85 | +define('PT_MV_UNICODE', (MV_FLAG|PT_UNICODE)); |
|
| 86 | +define('PT_MV_CLSID', (MV_FLAG|PT_CLSID)); |
|
| 87 | +define('PT_MV_I8', (MV_FLAG|PT_I8)); |
|
| 88 | 88 | |
| 89 | 89 | define('PT_MV_TSTRING', PT_MV_STRING8); |
| 90 | 90 | /* bit 0: set if descending, clear if ascending */ |
@@ -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}")); |
@@ -498,18 +498,18 @@ discard block |
||
| 498 | 498 | define('ecRightsContact', 0x00000200); |
| 499 | 499 | define('ecRightsFolderVisible', 0x00000400); |
| 500 | 500 | |
| 501 | -define('ecRightsAll', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderAccess | ecRightsFolderVisible); |
|
| 502 | -define('ecRightsSecretary', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsFolderVisible); |
|
| 503 | -define('ecRightsFullControl', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderVisible); |
|
| 504 | -define('ecRightsContributor', ecRightsFolderVisible | ecRightsCreate); |
|
| 505 | -define('ecRightsReviewer', ecRightsReadAny | ecRightsFolderVisible); |
|
| 506 | -define('ecRightsNonEditingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned); |
|
| 507 | -define('ecRightsAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned); |
|
| 508 | -define('ecRightsPublishingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsCreateSubfolder); |
|
| 509 | -define('ecRightsEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny); |
|
| 510 | -define('ecRightsPublishingEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder); |
|
| 511 | -define('ecRightsDefault', ecRightsNone | ecRightsFolderVisible); |
|
| 512 | -define('ecRightsDefaultPublic', ecRightsReadAny | ecRightsFolderVisible); |
|
| 501 | +define('ecRightsAll', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderAccess|ecRightsFolderVisible); |
|
| 502 | +define('ecRightsSecretary', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsFolderVisible); |
|
| 503 | +define('ecRightsFullControl', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderVisible); |
|
| 504 | +define('ecRightsContributor', ecRightsFolderVisible|ecRightsCreate); |
|
| 505 | +define('ecRightsReviewer', ecRightsReadAny|ecRightsFolderVisible); |
|
| 506 | +define('ecRightsNonEditingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned); |
|
| 507 | +define('ecRightsAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned); |
|
| 508 | +define('ecRightsPublishingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsCreateSubfolder); |
|
| 509 | +define('ecRightsEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny); |
|
| 510 | +define('ecRightsPublishingEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder); |
|
| 511 | +define('ecRightsDefault', ecRightsNone|ecRightsFolderVisible); |
|
| 512 | +define('ecRightsDefaultPublic', ecRightsReadAny|ecRightsFolderVisible); |
|
| 513 | 513 | define('ecRightsAdmin', 0x00001000); |
| 514 | 514 | define('ecRightsAllMask', 0x000015FB); |
| 515 | 515 | |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | define('ROW_ADD', 0x0001); |
| 526 | 526 | define('ROW_MODIFY', 0x0002); |
| 527 | 527 | define('ROW_REMOVE', 0x0004); |
| 528 | -define('ROW_EMPTY', (ROW_ADD | ROW_REMOVE)); |
|
| 528 | +define('ROW_EMPTY', (ROW_ADD|ROW_REMOVE)); |
|
| 529 | 529 | |
| 530 | 530 | // new property types |
| 531 | 531 | define('PT_SRESTRICTION', 0x00FD); |
@@ -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); |
@@ -133,14 +133,14 @@ discard block |
||
| 133 | 133 | $properties['recurrence_data'] = 'PT_BINARY:PSETID_Appointment:0x8216'; |
| 134 | 134 | $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:0x8501'; |
| 135 | 135 | $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:0x8503'; |
| 136 | - $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber |
|
| 137 | - $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
| 136 | + $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber |
|
| 137 | + $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
| 138 | 138 | $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:0x8205'; |
| 139 | 139 | $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:0x8224'; |
| 140 | 140 | $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:0x820d'; |
| 141 | 141 | $properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2'; |
| 142 | 142 | $properties['location'] = 'PT_STRING8:PSETID_Appointment:0x8208'; |
| 143 | - $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
| 143 | + $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
| 144 | 144 | $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:0x820d'; |
| 145 | 145 | $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:0x820e'; |
| 146 | 146 | $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:0x8560"; |
@@ -149,11 +149,11 @@ discard block |
||
| 149 | 149 | $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:0x8223'; |
| 150 | 150 | $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:0x8235'; |
| 151 | 151 | $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:0x8236'; |
| 152 | - $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
| 153 | - $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
| 154 | - $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
| 155 | - $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
| 156 | - $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
| 152 | + $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
| 153 | + $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
| 154 | + $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
| 155 | + $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
| 156 | + $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
| 157 | 157 | $properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230'; |
| 158 | 158 | // Propose new time properties |
| 159 | 159 | $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:0x8250'; |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | $listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY; |
| 527 | 527 | $messageProps = mapi_getprops($this->message, $listProperties); |
| 528 | 528 | |
| 529 | - $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
| 529 | + $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
| 530 | 530 | if (!isset($goid)) { |
| 531 | 531 | return; |
| 532 | 532 | } |
@@ -1460,7 +1460,7 @@ discard block |
||
| 1460 | 1460 | $props[$this->proptags['goid2']] = $goid; |
| 1461 | 1461 | |
| 1462 | 1462 | if (!isset($props[$this->proptags['updatecounter']])) { |
| 1463 | - $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
| 1463 | + $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
| 1464 | 1464 | $props[$this->proptags['last_updatecounter']] = 0; |
| 1465 | 1465 | } |
| 1466 | 1466 | |
@@ -2309,12 +2309,12 @@ discard block |
||
| 2309 | 2309 | $hasOrganizer = false; |
| 2310 | 2310 | // Check if meeting already has an organizer. |
| 2311 | 2311 | foreach ($recipients as $key => $recipient) { |
| 2312 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
| 2312 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
| 2313 | 2313 | $hasOrganizer = true; |
| 2314 | 2314 | } |
| 2315 | 2315 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
| 2316 | 2316 | // Recipients for an occurrence |
| 2317 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
| 2317 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
| 2318 | 2318 | } |
| 2319 | 2319 | } |
| 2320 | 2320 | |
@@ -2328,7 +2328,7 @@ discard block |
||
| 2328 | 2328 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
| 2329 | 2329 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
| 2330 | 2330 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
| 2331 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
| 2331 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
| 2332 | 2332 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
| 2333 | 2333 | |
| 2334 | 2334 | // Add organizer to recipients list. |
@@ -2511,7 +2511,7 @@ discard block |
||
| 2511 | 2511 | // Get resource recipients |
| 2512 | 2512 | $getResourcesRestriction = [RES_AND, |
| 2513 | 2513 | [[RES_PROPERTY, |
| 2514 | - [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
| 2514 | + [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
| 2515 | 2515 | ULPROPTAG => PR_RECIPIENT_TYPE, |
| 2516 | 2516 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
| 2517 | 2517 | ], |
@@ -2787,7 +2787,7 @@ discard block |
||
| 2787 | 2787 | // Get resource recipients |
| 2788 | 2788 | $getResourcesRestriction = [RES_AND, |
| 2789 | 2789 | [[RES_PROPERTY, |
| 2790 | - [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
| 2790 | + [RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
| 2791 | 2791 | ULPROPTAG => PR_RECIPIENT_TYPE, |
| 2792 | 2792 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
| 2793 | 2793 | ], |
@@ -2999,7 +2999,7 @@ discard block |
||
| 2999 | 2999 | // In direct-booking mode, we don't need to send cancellations to resources |
| 3000 | 3000 | if ($this->enableDirectBooking) { |
| 3001 | 3001 | $restriction[1][] = [RES_PROPERTY, |
| 3002 | - [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
| 3002 | + [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
| 3003 | 3003 | ULPROPTAG => PR_RECIPIENT_TYPE, |
| 3004 | 3004 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
| 3005 | 3005 | ], |
@@ -3096,7 +3096,7 @@ discard block |
||
| 3096 | 3096 | if ($this->enableDirectBooking) { |
| 3097 | 3097 | $stripResourcesRestriction[1][] = |
| 3098 | 3098 | [RES_PROPERTY, |
| 3099 | - [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
| 3099 | + [RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
| 3100 | 3100 | ULPROPTAG => PR_RECIPIENT_TYPE, |
| 3101 | 3101 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
| 3102 | 3102 | ], |
@@ -3202,7 +3202,7 @@ discard block |
||
| 3202 | 3202 | $newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled'; |
| 3203 | 3203 | $newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request |
| 3204 | 3204 | $newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free |
| 3205 | - $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
| 3205 | + $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
| 3206 | 3206 | if (isset($newmessageprops[PR_SUBJECT])) { |
| 3207 | 3207 | $newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT]; |
| 3208 | 3208 | } |
@@ -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); |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | VALUE => $goid, ], |
| 294 | 294 | ]; |
| 295 | 295 | |
| 296 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 296 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 297 | 297 | $softDeletedItems = mapi_table_queryallrows($table, [PR_ENTRYID], $restriction); |
| 298 | 298 | if (!empty($softDeletedItems)) { |
| 299 | 299 | return true; |
@@ -500,12 +500,12 @@ discard block |
||
| 500 | 500 | // Set properties on Task Request |
| 501 | 501 | mapi_setprops($this->message, [ |
| 502 | 502 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
| 503 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 504 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 505 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 503 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 504 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 505 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 506 | 506 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
| 507 | 507 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
| 508 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 508 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 509 | 509 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
| 510 | 510 | PR_ICON_INDEX => ICON_TASK_ASSIGNER, |
| 511 | 511 | ]); |
@@ -522,10 +522,10 @@ discard block |
||
| 522 | 522 | |
| 523 | 523 | // Make it a task request, and put it in sent items after it is sent |
| 524 | 524 | mapi_setprops($outgoing, [ |
| 525 | - PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
| 526 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 527 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 528 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 525 | + PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
| 526 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 527 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 528 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 529 | 529 | PR_SUBJECT_PREFIX => $prefix, |
| 530 | 530 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
| 531 | 531 | ]); |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | PR_ATTACHMENT_HIDDEN => true, |
| 537 | 537 | PR_DISPLAY_NAME => $messageprops[PR_SUBJECT], ]); |
| 538 | 538 | |
| 539 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY | MAPI_CREATE); |
|
| 539 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY|MAPI_CREATE); |
|
| 540 | 540 | |
| 541 | 541 | mapi_copyto($this->message, [], [], $sub); |
| 542 | 542 | mapi_setprops($sub, [PR_MESSAGE_CLASS => 'IPM.Task']); |
@@ -876,7 +876,7 @@ discard block |
||
| 876 | 876 | |
| 877 | 877 | $attach = mapi_message_createattach($outgoing); |
| 878 | 878 | mapi_setprops($attach, [PR_ATTACH_METHOD => ATTACH_EMBEDDED_MSG, PR_DISPLAY_NAME => $messageprops[PR_CONVERSATION_TOPIC], PR_ATTACHMENT_HIDDEN => true]); |
| 879 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 879 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 880 | 880 | |
| 881 | 881 | $message = !$this->isTaskRequest() ? $this->message : $this->getAssociatedTask(false); |
| 882 | 882 | |
@@ -927,7 +927,7 @@ discard block |
||
| 927 | 927 | // edit response before sending task response. |
| 928 | 928 | if ($this->taskCommentsInfo) { |
| 929 | 929 | $comments = $this->getTaskCommentsInfo(); |
| 930 | - $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 930 | + $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 931 | 931 | mapi_stream_setsize($stream, strlen($comments)); |
| 932 | 932 | mapi_stream_write($stream, $comments); |
| 933 | 933 | mapi_stream_commit($stream); |
@@ -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 | |