Passed
Push — master ( 243355...a36fcc )
by
unknown
15:02 queued 05:54
created
server/includes/core/class.operations.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2192,9 +2192,9 @@  discard block
 block discarded – undo
2192 2192
 			$messageProps = [];
2193 2193
 			// It stores the values that is exception allowed or not false -> not allowed
2194 2194
 			$isExceptionAllowed = true;
2195
-			$delete = $actionType == 'delete';	// Flag for MeetingRequest Class whether to send update or cancel mail.
2196
-			$basedate = false;	// Flag for MeetingRequest Class whether to send an exception or not.
2197
-			$isReminderTimeAllowed = true;	// Flag to check reminder minutes is in range of the occurrences
2195
+			$delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail.
2196
+			$basedate = false; // Flag for MeetingRequest Class whether to send an exception or not.
2197
+			$isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences
2198 2198
 			$properties = $GLOBALS['properties']->getAppointmentProperties();
2199 2199
 			$send = false;
2200 2200
 			$oldProps = [];
@@ -3115,7 +3115,7 @@  discard block
 block discarded – undo
3115 3115
 				 * convert flags of PR_MESSAGE_FLAGS property to flags that is
3116 3116
 				 * used in mapi_message_setreadflag.
3117 3117
 				 */
3118
-				$flag = MAPI_DEFERRED_ERRORS;		// set unread flag, read receipt will be sent
3118
+				$flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent
3119 3119
 
3120 3120
 				if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) {
3121 3121
 					$flag |= SUPPRESS_RECEIPT;
Please login to merge, or discard this patch.
server/includes/core/class.entryid.php 1 patch
Spacing   +35 added lines, -36 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 			$entryId = strtoupper($entryid);
56 56
 
57 57
 			$res = [
58
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
59
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
60
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
61
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
62
-				'uniqueId' => '',		// ULONG,    16 bytes,  32 hex characters
63
-				'server' => '',		// CHAR,     variable length
64
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
58
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
59
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
60
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
61
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
62
+				'uniqueId' => '', // ULONG,    16 bytes,  32 hex characters
63
+				'server' => '', // CHAR,     variable length
64
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
65 65
 			];
66 66
 
67 67
 			$res['length'] = strlen($entryId);
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
 			$entryId = strtoupper($entryid);
101 101
 
102 102
 			$res = [
103
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
104
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
105
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
106
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
107
-				'id' => '',		// ULONG,     4 bytes,  8 hex characters
108
-				'server' => '',		// CHAR,     variable length
109
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
103
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
104
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
105
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
106
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
107
+				'id' => '', // ULONG,     4 bytes,  8 hex characters
108
+				'server' => '', // CHAR,     variable length
109
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
110 110
 			];
111 111
 
112 112
 			$res['length'] = strlen($entryId);
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
 			$entryId = strtoupper($entryId);
186 186
 
187 187
 			$res = [
188
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
189
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
190
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
191
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
192
-				'id' => '',		// ULONG,    16 bytes,  32 hex characters
193
-				'extid' => '',		// CHAR,     variable length
194
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
188
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
189
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
190
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
191
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
192
+				'id' => '', // ULONG,    16 bytes,  32 hex characters
193
+				'extid' => '', // CHAR,     variable length
194
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
195 195
 			];
196 196
 
197 197
 			$res['length'] = strlen($entryId);
@@ -636,8 +636,7 @@  discard block
 block discarded – undo
636 636
 				}
637 637
 			}
638 638
 			elseif ($checkValue !== null && $val != $checkValue) {
639
-				$user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() :
640
-						"<mapisession not yet initialized>";
639
+				$user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() : "<mapisession not yet initialized>";
641 640
 				error_log(sprintf(
642 641
 					"Unexpected value in store entryid for user %s. Entryid: %s key: '%s' value: '%s' expected: %s",
643 642
 					$user,
@@ -667,13 +666,13 @@  discard block
 block discarded – undo
667 666
 			$entryId = strtoupper($entryId);
668 667
 
669 668
 			$res = [
670
-				'providerguid' => '',			// GUID,     16 bytes, 32 hex characters
671
-				'messagetype' => '',			// UINT,      2 bytes,  4 hex characters
672
-				'folderdbguid' => '',			// GUID,     16 bytes, 32 hex characters
673
-				'foldercounter' => '',		// ULONG,     6 bytes, 12 hex characters
674
-				'padding' => '',					// TCHAR[3],  2 bytes,  4 hex characters
675
-				'messagedbguid' => '',		// GUID,     16 bytes, 32 hex characters
676
-				'messagecounter' => '',	// ULONG,     6 bytes, 12 hex characters
669
+				'providerguid' => '', // GUID,     16 bytes, 32 hex characters
670
+				'messagetype' => '', // UINT,      2 bytes,  4 hex characters
671
+				'folderdbguid' => '', // GUID,     16 bytes, 32 hex characters
672
+				'foldercounter' => '', // ULONG,     6 bytes, 12 hex characters
673
+				'padding' => '', // TCHAR[3],  2 bytes,  4 hex characters
674
+				'messagedbguid' => '', // GUID,     16 bytes, 32 hex characters
675
+				'messagecounter' => '', // ULONG,     6 bytes, 12 hex characters
677 676
 			];
678 677
 
679 678
 			if (!$entryId) {
@@ -733,12 +732,12 @@  discard block
 block discarded – undo
733 732
 			$entryId = strtoupper($entryId);
734 733
 
735 734
 			$res = [
736
-				'abflags' => '',					// BYTE[4],   4 bytes,  8 hex characters
737
-				'providerguid' => '',			// GUID,     16 bytes, 32 hex characters
738
-				'foldertype' => '',				// UINT,      2 bytes,  4 hex characters
739
-				'folderdbguid' => '',			// GUID,     16 bytes, 32 hex characters
740
-				'foldercounter' => '',		// ULONG,     6 bytes, 12 hex characters
741
-				'padding' => '',					// TCHAR[3],  2 bytes,  4 hex characters
735
+				'abflags' => '', // BYTE[4],   4 bytes,  8 hex characters
736
+				'providerguid' => '', // GUID,     16 bytes, 32 hex characters
737
+				'foldertype' => '', // UINT,      2 bytes,  4 hex characters
738
+				'folderdbguid' => '', // GUID,     16 bytes, 32 hex characters
739
+				'foldercounter' => '', // ULONG,     6 bytes, 12 hex characters
740
+				'padding' => '', // TCHAR[3],  2 bytes,  4 hex characters
742 741
 			];
743 742
 
744 743
 			if (!$entryId) {
Please login to merge, or discard this patch.
server/includes/mapi/mapidefs.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -28,40 +28,40 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
server/includes/mapi/class.baserecurrence.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1896,7 +1896,7 @@
 block discarded – undo
1896 1896
 						}
1897 1897
 						elseif ($this->recur['regen']) {
1898 1898
 							$year_starttime = $this->gmtime($now);
1899
-							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1);	// +1 next year
1899
+							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year
1900 1900
 							$now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */);
1901 1901
 
1902 1902
 							if ($now <= $dayend) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -764,7 +764,7 @@
 block discarded – undo
764 764
 
765 765
 							// If the previous calculation gave us a start date different than the original start date, then we need to skip to the first occurrence
766 766
 							if (($rtype == IDC_RCEV_PAT_ORB_MONTHLY && ((int) $this->recur["monthday"]) < $curmonthday) ||
767
-							    ($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) {
767
+								($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) {
768 768
 								if ($rtype == IDC_RCEV_PAT_ORB_YEARLY) {
769 769
 									if ($curmonth > $selmonth) {// go to next occurrence in 'everyn' months minus difference in first occurrence and original date
770 770
 										$count = $everyn - ($curmonth - $selmonth);
Please login to merge, or discard this patch.
server/includes/loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
 			];
361 361
 			$fileDependencies[$filename] = [
362 362
 				'depends' => [],
363
-				'core' => $core,		// Based on tag or on class or on file path?
363
+				'core' => $core, // Based on tag or on class or on file path?
364 364
 			];
365 365
 
366 366
 			for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) {
Please login to merge, or discard this patch.
server/includes/core/class.properties.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -247,14 +247,14 @@  discard block
 block discarded – undo
247 247
 				$properties["reminderset"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet;
248 248
 				$properties["flag_request"] = "PT_STRING8:PSETID_Common:" . PidLidFlagRequest;
249 249
 				$properties["flag_due_by"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime;
250
-				$properties["updatecounter"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentSequence;                                     // AppointmentSequenceNumber
251
-				$properties["last_updatecounter"] = "PT_LONG:PSETID_Appointment:0x8203";                        // AppointmentLastSequence
250
+				$properties["updatecounter"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentSequence; // AppointmentSequenceNumber
251
+				$properties["last_updatecounter"] = "PT_LONG:PSETID_Appointment:0x8203"; // AppointmentLastSequence
252 252
 				$properties["busystatus"] = "PT_LONG:PSETID_Appointment:" . PidLidBusyStatus;
253 253
 				$properties["intendedbusystatus"] = "PT_LONG:PSETID_Appointment:" . PidLidIntendedBusyStatus;
254 254
 				$properties["start"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole;
255 255
 				$properties["responselocation"] = "PT_STRING8:PSETID_Meeting:0x2";
256 256
 				$properties["location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation;
257
-				$properties["requestsent"] = "PT_BOOLEAN:PSETID_Appointment:0x8229";            // PidLidFInvited, MeetingRequestWasSent
257
+				$properties["requestsent"] = "PT_BOOLEAN:PSETID_Appointment:0x8229"; // PidLidFInvited, MeetingRequestWasSent
258 258
 				$properties["startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole;
259 259
 				$properties["duedate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole;
260 260
 				$properties["commonstart"] = "PT_SYSTIME:PSETID_Common:0x8516";
@@ -262,11 +262,11 @@  discard block
 block discarded – undo
262 262
 				$properties["recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring;
263 263
 				$properties["clipstart"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart;
264 264
 				$properties["clipend"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd;
265
-				$properties["start_recur_date"] = "PT_LONG:PSETID_Meeting:0xD";                         // StartRecurTime
266
-				$properties["start_recur_time"] = "PT_LONG:PSETID_Meeting:0xE";                         // StartRecurTime
267
-				$properties["end_recur_date"] = "PT_LONG:PSETID_Meeting:0xF";                           // EndRecurDate
268
-				$properties["end_recur_time"] = "PT_LONG:PSETID_Meeting:0x10";                          // EndRecurTime
269
-				$properties["is_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA";                          // LID_IS_EXCEPTION
265
+				$properties["start_recur_date"] = "PT_LONG:PSETID_Meeting:0xD"; // StartRecurTime
266
+				$properties["start_recur_time"] = "PT_LONG:PSETID_Meeting:0xE"; // StartRecurTime
267
+				$properties["end_recur_date"] = "PT_LONG:PSETID_Meeting:0xF"; // EndRecurDate
268
+				$properties["end_recur_time"] = "PT_LONG:PSETID_Meeting:0x10"; // EndRecurTime
269
+				$properties["is_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION
270 270
 				// Propose new time properties
271 271
 				$properties["proposed_start_whole"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedStartWhole;
272 272
 				$properties["proposed_end_whole"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedEndWhole;
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
 				$properties = [];
640 640
 				$properties["entryid"] = PR_ENTRYID;
641 641
 				$properties["parent_entryid"] = PR_PARENT_ENTRYID;
642
-				$properties["store_entryid"] = PR_STORE_ENTRYID;	// is this required ???
642
+				$properties["store_entryid"] = PR_STORE_ENTRYID; // is this required ???
643 643
 				$properties["icon_index"] = PR_ICON_INDEX;
644 644
 				$properties["message_class"] = PR_MESSAGE_CLASS;
645 645
 				$properties["message_flags"] = PR_MESSAGE_FLAGS;
@@ -955,9 +955,9 @@  discard block
 block discarded – undo
955 955
 				$properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation;
956 956
 				$properties["appointment_recurring_pattern"] = "PT_STRING8:PSETID_Appointment:0x8232";
957 957
 				$properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring;
958
-				$properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart;	// ClipStart
959
-				$properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd;		// ClipEnd
960
-				$properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA";						// LID_IS_EXCEPTION
958
+				$properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; // ClipStart
959
+				$properties["appointment_enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; // ClipEnd
960
+				$properties["appointment_exception"] = "PT_BOOLEAN:PSETID_Meeting:0xA"; // LID_IS_EXCEPTION
961 961
 				$properties["appointment_location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation;
962 962
 				// Propose new time properties
963 963
 				$properties["proposed_start_date"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentProposedStartWhole;
@@ -1243,18 +1243,18 @@  discard block
 block discarded – undo
1243 1243
 				$properties["subject"] = PR_SUBJECT;
1244 1244
 				$properties["object_type"] = PR_OBJECT_TYPE;
1245 1245
 
1246
-				$properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet;				// PidLidReminderSet
1247
-				$properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta;			// PidLidReminderDelta
1248
-				$properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime;			// PidLidReminderTime
1249
-				$properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime;				// PidLidReminderSignalTime
1246
+				$properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; // PidLidReminderSet
1247
+				$properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; // PidLidReminderDelta
1248
+				$properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; // PidLidReminderTime
1249
+				$properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; // PidLidReminderSignalTime
1250 1250
 
1251
-				$properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate;				// PidLidTaskDueDate
1252
-				$properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate;			// PidLidTaskStartDate
1253
-				$properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107";		// PidLidTaskResetReminder
1254
-				$properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126";			// PidLidTaskFRecurring
1251
+				$properties["task_duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; // PidLidTaskDueDate
1252
+				$properties["task_startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; // PidLidTaskStartDate
1253
+				$properties["task_resetreminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; // PidLidTaskResetReminder
1254
+				$properties["task_recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; // PidLidTaskFRecurring
1255 1255
 				$properties["taskmode"] = "PT_LONG:PSETID_Common:0x8518";
1256 1256
 
1257
-				$properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring;			// PidLidRecurring
1257
+				$properties["appointment_recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; // PidLidRecurring
1258 1258
 				$properties["appointment_startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole;
1259 1259
 				$properties["appointment_enddate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole;
1260 1260
 				$properties["appointment_startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart;
Please login to merge, or discard this patch.
server/includes/mapi/mapi.util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 		[
233 233
 			RES_OR,
234 234
 			[
235
-				[RES_AND,	// Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
235
+				[RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
236 236
 					[
237 237
 						[
238 238
 							RES_PROPERTY,
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
 						VALUE => true,
262 262
 					],
263 263
 				],
264
-			],	// EXISTS OR
265
-		];		// global OR
264
+			], // EXISTS OR
265
+		]; // global OR
266 266
 
267 267
 	// Get requested properties, plus whatever we need
268 268
 	$proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]];
Please login to merge, or discard this patch.
server/includes/mapi/class.meetingrequest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -152,15 +152,15 @@  discard block
 block discarded – undo
152 152
 		$properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta;
153 153
 		$properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet;
154 154
 		$properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200';
155
-		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence;					// AppointmentSequenceNumber
155
+		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber
156 156
 		$properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202';
157
-		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203';			// AppointmentLastSequence
157
+		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence
158 158
 		$properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus;
159 159
 		$properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus;
160 160
 		$properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
161 161
 		$properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2';
162 162
 		$properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation;
163
-		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229';		// PidLidFInvited, MeetingRequestWasSent
163
+		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent
164 164
 		$properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
165 165
 		$properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole;
166 166
 		$properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime;
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 		$properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring;
170 170
 		$properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart;
171 171
 		$properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd;
172
-		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD';				// StartRecurTime
173
-		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE';				// StartRecurTime
174
-		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF';				// EndRecurDate
175
-		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10';				// EndRecurTime
176
-		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA';				// LID_IS_EXCEPTION
172
+		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime
173
+		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime
174
+		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate
175
+		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime
176
+		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION
177 177
 		$properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230';
178 178
 		// Propose new time properties
179 179
 		$properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole;
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 		$listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY;
549 549
 		$messageProps = mapi_getprops($this->message, $listProperties);
550 550
 
551
-		$goid = $messageProps[$this->proptags['goid']];	// GlobalID (0x3)
551
+		$goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3)
552 552
 		if (!isset($goid)) {
553 553
 			return;
554 554
 		}
@@ -1483,7 +1483,7 @@  discard block
 block discarded – undo
1483 1483
 		$props[$this->proptags['goid2']] = $goid;
1484 1484
 
1485 1485
 		if (!isset($props[$this->proptags['updatecounter']])) {
1486
-			$props[$this->proptags['updatecounter']] = 0;			// OL also starts sequence no with zero.
1486
+			$props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero.
1487 1487
 			$props[$this->proptags['last_updatecounter']] = 0;
1488 1488
 		}
1489 1489
 
@@ -2487,7 +2487,7 @@  discard block
 block discarded – undo
2487 2487
 		$getResourcesRestriction = [
2488 2488
 			RES_PROPERTY,
2489 2489
 			[
2490
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2490
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2491 2491
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2492 2492
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2493 2493
 			],
@@ -2763,7 +2763,7 @@  discard block
 block discarded – undo
2763 2763
 		$getResourcesRestriction = [
2764 2764
 			RES_PROPERTY,
2765 2765
 			[
2766
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2766
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2767 2767
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2768 2768
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2769 2769
 			],
@@ -2981,7 +2981,7 @@  discard block
 block discarded – undo
2981 2981
 				$restriction[1][] = [
2982 2982
 					RES_PROPERTY,
2983 2983
 					[
2984
-						RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
2984
+						RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
2985 2985
 						ULPROPTAG => PR_RECIPIENT_TYPE,
2986 2986
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2987 2987
 					],
@@ -3084,7 +3084,7 @@  discard block
 block discarded – undo
3084 3084
 			$stripResourcesRestriction[1][] = [
3085 3085
 				RES_PROPERTY,
3086 3086
 				[
3087
-					RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
3087
+					RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3088 3088
 					ULPROPTAG => PR_RECIPIENT_TYPE,
3089 3089
 					VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3090 3090
 				],
@@ -3190,7 +3190,7 @@  discard block
 block discarded – undo
3190 3190
 			$newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled';
3191 3191
 			$newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request
3192 3192
 			$newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free
3193
-			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH;	// HIGH Importance
3193
+			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance
3194 3194
 			if (isset($newmessageprops[PR_SUBJECT])) {
3195 3195
 				$newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT];
3196 3196
 			}
Please login to merge, or discard this patch.
server/includes/mapi/class.taskrequest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
  * carried in the IPM.TaskRequest item (although this information seems
25 25
  * redundant due to that information already being available in PR_MESSAGE_CLASS).
26 26
  */
27
-define('tdmtNothing', 0);			// Value in IPM.Task items
28
-define('tdmtTaskReq', 1);			// Assigner -> Assignee
29
-define('tdmtTaskAcc', 2);			// Assignee -> Assigner
30
-define('tdmtTaskDec', 3);			// Assignee -> Assigner
31
-define('tdmtTaskUpd', 4);			// Assignee -> Assigner
32
-define('tdmtTaskSELF', 5);			// Assigner -> Assigner (?)
27
+define('tdmtNothing', 0); // Value in IPM.Task items
28
+define('tdmtTaskReq', 1); // Assigner -> Assignee
29
+define('tdmtTaskAcc', 2); // Assignee -> Assigner
30
+define('tdmtTaskDec', 3); // Assignee -> Assigner
31
+define('tdmtTaskUpd', 4); // Assignee -> Assigner
32
+define('tdmtTaskSELF', 5); // Assigner -> Assigner (?)
33 33
 
34 34
 /* The TaskHistory is used to show the last action on the task
35 35
  * on both the assigner and the assignee's side.
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
  * the format 'Accepted by <user> on 01-01-2010 11:00'.
40 40
  */
41 41
 define('thNone', 0);
42
-define('thAccepted', 1);			// Set by assignee
43
-define('thDeclined', 2);			// Set by assignee
44
-define('thUpdated', 3);				// Set by assignee
42
+define('thAccepted', 1); // Set by assignee
43
+define('thDeclined', 2); // Set by assignee
44
+define('thUpdated', 3); // Set by assignee
45 45
 define('thDueDateChanged', 4);
46
-define('thAssigned', 5);			// Set by assigner
46
+define('thAssigned', 5); // Set by assigner
47 47
 
48 48
 /* The TaskState value is used to differentiate the version of a task
49 49
  * in the assigner's folder and the version in the
50 50
  * assignee's folder. The buttons shown depend on this and
51 51
  * the 'taskaccepted' boolean (for the assignee)
52 52
  */
53
-define('tdsNOM', 0);		// Got a response to a deleted task, and re-created the task for the assigner
54
-define('tdsOWNNEW', 1);		// Not assigned
55
-define('tdsOWN', 2);		// Assignee version
56
-define('tdsACC', 3);		// Assigner version
57
-define('tdsDEC', 4);		// Assigner version, but assignee declined
53
+define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner
54
+define('tdsOWNNEW', 1); // Not assigned
55
+define('tdsOWN', 2); // Assignee version
56
+define('tdsACC', 3); // Assigner version
57
+define('tdsDEC', 4); // Assigner version, but assignee declined
58 58
 
59 59
 /* The TaskAcceptanceState is used for the assigner to indicate state */
60 60
 define('olTaskNotDelegated', 0);
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
 
65 65
 /* The task ownership indicates the role of the current user relative to the task. */
66 66
 define('olNewTask', 0);
67
-define('olDelegatedTask', 1);	// Task has been assigned
68
-define('olOwnTask', 2);			// Task owned
67
+define('olDelegatedTask', 1); // Task has been assigned
68
+define('olOwnTask', 2); // Task owned
69 69
 
70 70
 /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */
71 71
 define('tmrNone', 0);
72
-define('tmrSent', 1);		// Task has been sent to multiple assignee
73
-define('tmrReceived', 2);	// Task Request received has multiple assignee
72
+define('tmrSent', 1); // Task has been sent to multiple assignee
73
+define('tmrReceived', 2); // Task Request received has multiple assignee
74 74
 
75 75
 // Task icon index.
76 76
 define('ICON_TASK_ASSIGNEE', 0x00000502);
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
 			}
1244 1244
 
1245 1245
 			foreach ($recips as $recip) {
1246
-				$recip[PR_RECIPIENT_TYPE] = MAPI_TO;	// Change recipient type to MAPI_TO
1246
+				$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1247 1247
 				mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1248 1248
 			}
1249 1249
 
Please login to merge, or discard this patch.