Passed
Push — master ( 4446ba...bc722f )
by
unknown
11:45 queued 59s
created
mapi/mapi.util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 			RES_OR,
227 227
 			[
228 228
 				[
229
-					RES_AND,    // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
229
+					RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
230 230
 					[
231 231
 						[
232 232
 							RES_PROPERTY,
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 					],
257 257
 				],
258 258
 			], // EXISTS OR
259
-		];        // global OR
259
+		]; // global OR
260 260
 
261 261
 	// Get requested properties, plus whatever we need
262 262
 	$proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]];
Please login to merge, or discard this patch.
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:0x8501';
153 153
 		$properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:0x8503';
154 154
 		$properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200';
155
-		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201';                    // AppointmentSequenceNumber
156
-		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203';            // AppointmentLastSequence
155
+		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber
156
+		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence
157 157
 		$properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202';
158 158
 		$properties['busystatus'] = 'PT_LONG:PSETID_Appointment:0x8205';
159 159
 		$properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:0x8224';
160 160
 		$properties['start'] = 'PT_SYSTIME:PSETID_Appointment:0x820d';
161 161
 		$properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2';
162 162
 		$properties['location'] = 'PT_STRING8:PSETID_Appointment:0x8208';
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:0x820d';
165 165
 		$properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:0x820e';
166 166
 		$properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:0x8560';
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 		$properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:0x8223';
170 170
 		$properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:0x8235';
171 171
 		$properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:0x8236';
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:0x8250';
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 		$listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY;
546 546
 		$messageProps = mapi_getprops($this->message, $listProperties);
547 547
 
548
-		$goid = $messageProps[$this->proptags['goid']];    // GlobalID (0x3)
548
+		$goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3)
549 549
 		if (!isset($goid)) {
550 550
 			return;
551 551
 		}
@@ -1443,7 +1443,7 @@  discard block
 block discarded – undo
1443 1443
 		$props[$this->proptags['goid2']] = $goid;
1444 1444
 
1445 1445
 		if (!isset($props[$this->proptags['updatecounter']])) {
1446
-			$props[$this->proptags['updatecounter']] = 0;            // OL also starts sequence no with zero.
1446
+			$props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero.
1447 1447
 			$props[$this->proptags['last_updatecounter']] = 0;
1448 1448
 		}
1449 1449
 
@@ -2498,7 +2498,7 @@  discard block
 block discarded – undo
2498 2498
 				[
2499 2499
 					RES_PROPERTY,
2500 2500
 					[
2501
-						RELOP => RELOP_EQ,    // Equals recipient type 3: Resource
2501
+						RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2502 2502
 						ULPROPTAG => PR_RECIPIENT_TYPE,
2503 2503
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2504 2504
 					],
@@ -2780,7 +2780,7 @@  discard block
 block discarded – undo
2780 2780
 				[
2781 2781
 					RES_PROPERTY,
2782 2782
 					[
2783
-						RELOP => RELOP_EQ,    // Equals recipient type 3: Resource
2783
+						RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2784 2784
 						ULPROPTAG => PR_RECIPIENT_TYPE,
2785 2785
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2786 2786
 					],
@@ -3012,7 +3012,7 @@  discard block
 block discarded – undo
3012 3012
 				$restriction[1][] = [
3013 3013
 					RES_PROPERTY,
3014 3014
 					[
3015
-						RELOP => RELOP_NE,    // Does not equal recipient type: MAPI_BCC (Resource)
3015
+						RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3016 3016
 						ULPROPTAG => PR_RECIPIENT_TYPE,
3017 3017
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3018 3018
 					],
@@ -3109,7 +3109,7 @@  discard block
 block discarded – undo
3109 3109
 									[
3110 3110
 										RES_PROPERTY,
3111 3111
 										[
3112
-											RELOP => RELOP_NE,    // Does not equal recipient type: MAPI_BCC (Resource)
3112
+											RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3113 3113
 											ULPROPTAG => PR_RECIPIENT_TYPE,
3114 3114
 											VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3115 3115
 										],
@@ -3216,7 +3216,7 @@  discard block
 block discarded – undo
3216 3216
 			$newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled';
3217 3217
 			$newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request
3218 3218
 			$newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free
3219
-			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH;    // HIGH Importance
3219
+			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance
3220 3220
 			if (isset($newmessageprops[PR_SUBJECT])) {
3221 3221
 				$newmessageprops[PR_SUBJECT] = _('Canceled: ') . $newmessageprops[PR_SUBJECT];
3222 3222
 			}
Please login to merge, or discard this patch.
mapi/class.recurrence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1120,7 +1120,7 @@  discard block
 block discarded – undo
1120 1120
 					else {
1121 1121
 						$recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1122 1122
 					}
1123
-					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone;        // No Response required
1123
+					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required
1124 1124
 				}
1125 1125
 				unset($recip);
1126 1126
 				mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']);
@@ -1196,7 +1196,7 @@  discard block
 block discarded – undo
1196 1196
 							else {
1197 1197
 								$recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1198 1198
 							}
1199
-							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;    // No Response required
1199
+							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required
1200 1200
 							$deletedRecipients[] = $recipient;
1201 1201
 						}
1202 1202
 					}
Please login to merge, or discard this patch.
mapi/mapidefs.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -16,40 +16,40 @@  discard block
 block discarded – undo
16 16
 
17 17
 /* Object type */
18 18
 
19
-define('MAPI_STORE', 0x00000001);    /* Message Store */
20
-define('MAPI_ADDRBOOK', 0x00000002);    /* Address Book */
21
-define('MAPI_FOLDER', 0x00000003);    /* Folder */
22
-define('MAPI_ABCONT', 0x00000004);    /* Address Book Container */
23
-define('MAPI_MESSAGE', 0x00000005);    /* Message */
24
-define('MAPI_MAILUSER', 0x00000006);    /* Individual Recipient */
25
-define('MAPI_ATTACH', 0x00000007);    /* Attachment */
26
-define('MAPI_DISTLIST', 0x00000008);    /* Distribution List Recipient */
27
-define('MAPI_PROFSECT', 0x00000009);    /* Profile Section */
28
-define('MAPI_STATUS', 0x0000000A);    /* Status Object */
29
-define('MAPI_SESSION', 0x0000000B);    /* Session */
30
-define('MAPI_FORMINFO', 0x0000000C);    /* Form Information */
19
+define('MAPI_STORE', 0x00000001); /* Message Store */
20
+define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */
21
+define('MAPI_FOLDER', 0x00000003); /* Folder */
22
+define('MAPI_ABCONT', 0x00000004); /* Address Book Container */
23
+define('MAPI_MESSAGE', 0x00000005); /* Message */
24
+define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */
25
+define('MAPI_ATTACH', 0x00000007); /* Attachment */
26
+define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */
27
+define('MAPI_PROFSECT', 0x00000009); /* Profile Section */
28
+define('MAPI_STATUS', 0x0000000A); /* Status Object */
29
+define('MAPI_SESSION', 0x0000000B); /* Session */
30
+define('MAPI_FORMINFO', 0x0000000C); /* Form Information */
31 31
 
32 32
 define('MV_FLAG', 0x1000);
33 33
 define('MV_INSTANCE', 0x2000);
34 34
 define('MVI_FLAG', MV_FLAG | MV_INSTANCE);
35 35
 
36
-define('PT_UNSPECIFIED', 0);    /* (Reserved for interface use) type doesn't matter to caller */
37
-define('PT_NULL', 1);    /* NULL property value */
38
-define('PT_I2', 2);    /* Signed 16-bit value */
39
-define('PT_LONG', 3);    /* Signed 32-bit value */
40
-define('PT_R4', 4);    /* 4-byte floating point */
41
-define('PT_DOUBLE', 5);    /* Floating point double */
42
-define('PT_CURRENCY', 6);    /* Signed 64-bit int (decimal w/    4 digits right of decimal pt) */
43
-define('PT_APPTIME', 7);    /* Application time */
44
-define('PT_ERROR', 10);    /* 32-bit error value */
45
-define('PT_BOOLEAN', 11);    /* 16-bit boolean (non-zero true) */
46
-define('PT_OBJECT', 13);    /* Embedded object in a property */
47
-define('PT_I8', 20);    /* 8-byte signed integer */
48
-define('PT_STRING8', 30);    /* Null terminated 8-bit character string */
49
-define('PT_UNICODE', 31);    /* Null terminated Unicode string */
50
-define('PT_SYSTIME', 64);    /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
51
-define('PT_CLSID', 72);    /* OLE GUID */
52
-define('PT_BINARY', 258);   /* Uninterpreted (counted byte array) */
36
+define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */
37
+define('PT_NULL', 1); /* NULL property value */
38
+define('PT_I2', 2); /* Signed 16-bit value */
39
+define('PT_LONG', 3); /* Signed 32-bit value */
40
+define('PT_R4', 4); /* 4-byte floating point */
41
+define('PT_DOUBLE', 5); /* Floating point double */
42
+define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/    4 digits right of decimal pt) */
43
+define('PT_APPTIME', 7); /* Application time */
44
+define('PT_ERROR', 10); /* 32-bit error value */
45
+define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */
46
+define('PT_OBJECT', 13); /* Embedded object in a property */
47
+define('PT_I8', 20); /* 8-byte signed integer */
48
+define('PT_STRING8', 30); /* Null terminated 8-bit character string */
49
+define('PT_UNICODE', 31); /* Null terminated Unicode string */
50
+define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
51
+define('PT_CLSID', 72); /* OLE GUID */
52
+define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */
53 53
 /* Changes are likely to these numbers, and to their structures. */
54 54
 
55 55
 /* Alternate property type names for ease of use */
@@ -190,14 +190,14 @@  discard block
 block discarded – undo
190 190
 
191 191
 /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */
192 192
 
193
-define('MAPI_STORE_PROVIDER', 33);    /* Message Store */
194
-define('MAPI_AB', 34);    /* Address Book */
195
-define('MAPI_AB_PROVIDER', 35);    /* Address Book Provider */
196
-define('MAPI_TRANSPORT_PROVIDER', 36);    /* Transport Provider */
197
-define('MAPI_SPOOLER', 37);    /* Message Spooler */
198
-define('MAPI_PROFILE_PROVIDER', 38);    /* Profile Provider */
199
-define('MAPI_SUBSYSTEM', 39);    /* Overall Subsystem Status */
200
-define('MAPI_HOOK_PROVIDER', 40);    /* Spooler Hook */
193
+define('MAPI_STORE_PROVIDER', 33); /* Message Store */
194
+define('MAPI_AB', 34); /* Address Book */
195
+define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */
196
+define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */
197
+define('MAPI_SPOOLER', 37); /* Message Spooler */
198
+define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */
199
+define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */
200
+define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */
201 201
 define('STATUS_VALIDATE_STATE', 0x00000001);
202 202
 define('STATUS_SETTINGS_DIALOG', 0x00000002);
203 203
 define('STATUS_CHANGE_PASSWORD', 0x00000004);
@@ -243,10 +243,10 @@  discard block
 block discarded – undo
243 243
 define('MODRECIP_MODIFY', 0x00000004);
244 244
 define('MODRECIP_REMOVE', 0x00000008);
245 245
 
246
-define('MAPI_ORIG', 0);          /* Recipient is message originator */
247
-define('MAPI_TO', 1);          /* Recipient is a primary recipient */
248
-define('MAPI_CC', 2);          /* Recipient is a copy recipient */
249
-define('MAPI_BCC', 3);          /* Recipient is blind copy recipient */
246
+define('MAPI_ORIG', 0); /* Recipient is message originator */
247
+define('MAPI_TO', 1); /* Recipient is a primary recipient */
248
+define('MAPI_CC', 2); /* Recipient is a copy recipient */
249
+define('MAPI_BCC', 3); /* Recipient is blind copy recipient */
250 250
 
251 251
 /* IAttach Interface ------------------------------------------------------- */
252 252
 
@@ -438,23 +438,23 @@  discard block
 block discarded – undo
438 438
 define('BMR_NEZ', 0x00000001);
439 439
 
440 440
 /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */
441
-define('VALUE', 0);        // propval
442
-define('RELOP', 1);        // compare method
443
-define('FUZZYLEVEL', 2);        // string search flags
444
-define('CB', 3);        // size restriction
445
-define('ULTYPE', 4);        // bit mask restriction type BMR_xxx
446
-define('ULMASK', 5);        // bitmask
447
-define('ULPROPTAG', 6);        // property
448
-define('ULPROPTAG1', 7);        // RES_COMPAREPROPS 1st property
449
-define('ULPROPTAG2', 8);        // RES_COMPAREPROPS 2nd property
450
-define('PROPS', 9);        // RES_COMMENT properties
451
-define('RESTRICTION', 10);       // RES_COMMENT and RES_SUBRESTRICTION restriction
441
+define('VALUE', 0); // propval
442
+define('RELOP', 1); // compare method
443
+define('FUZZYLEVEL', 2); // string search flags
444
+define('CB', 3); // size restriction
445
+define('ULTYPE', 4); // bit mask restriction type BMR_xxx
446
+define('ULMASK', 5); // bitmask
447
+define('ULPROPTAG', 6); // property
448
+define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property
449
+define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property
450
+define('PROPS', 9); // RES_COMMENT properties
451
+define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction
452 452
 
453 453
 /* GUID's for PR_MDB_PROVIDER */
454
-define("ZARAFA_SERVICE_GUID", makeGuid("{3C253DCA-D227-443C-94FE-425FAB958C19}"));    // default store
455
-define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}"));    // public store
456
-define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}"));    // other store
457
-define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}"));    // archive store
454
+define("ZARAFA_SERVICE_GUID", makeGuid("{3C253DCA-D227-443C-94FE-425FAB958C19}")); // default store
455
+define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store
456
+define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{7C7C1085-BC6D-4E53-9DAB-8A53F8DEF808}")); // other store
457
+define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store
458 458
 
459 459
 /* global profile section guid */
460 460
 define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}"));
@@ -570,38 +570,38 @@  discard block
 block discarded – undo
570 570
 define('SYNC_NO_FOREIGN_KEYS', 0x100);
571 571
 define('SYNC_LIMITED_IMESSAGE', 0x200);
572 572
 define('SYNC_CATCHUP', 0x400);
573
-define('SYNC_NEW_MESSAGE', 0x800);         // only applicable to ImportMessageChange()
574
-define('SYNC_MSG_SELECTIVE', 0x1000);        // Used internally.      Will reject if used by clients.
573
+define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange()
574
+define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally.      Will reject if used by clients.
575 575
 define('SYNC_BEST_BODY', 0x2000);
576 576
 define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000);
577
-define('SYNC_PROGRESS_MODE', 0x8000);        // AirMapi progress mode
577
+define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode
578 578
 define('SYNC_FXRECOVERMODE', 0x10000);
579 579
 define('SYNC_DEFER_CONFIG', 0x20000);
580
-define('SYNC_FORCE_UNICODE', 0x40000);       // Forces server to return Unicode properties
581
-define('SYNC_STATE_READONLY', 0x80000);       // Server will not update the states in the DB, setting up exporter with this flag states are read only
580
+define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties
581
+define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only
582 582
 
583
-define('EMS_AB_ADDRESS_LOOKUP', 0x00000001);    // Flag for resolvename to resolve only exact matches
583
+define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches
584 584
 
585
-define('TBL_BATCH', 0x00000002);    // Batch multiple table commands
585
+define('TBL_BATCH', 0x00000002); // Batch multiple table commands
586 586
 
587 587
 /* Flags for recipients in exceptions */
588
-define('recipSendable', 0x00000001);    // sendable attendee.
589
-define('recipOrganizer', 0x00000002);    // meeting organizer
590
-define('recipExceptionalResponse', 0x00000010);    // attendee gave a response for the exception
591
-define('recipExceptionalDeleted', 0x00000020);    // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
592
-define('recipOriginal', 0x00000100);    // recipient is an original Attendee
588
+define('recipSendable', 0x00000001); // sendable attendee.
589
+define('recipOrganizer', 0x00000002); // meeting organizer
590
+define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception
591
+define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
592
+define('recipOriginal', 0x00000100); // recipient is an original Attendee
593 593
 define('recipReserved', 0x00000200);
594 594
 
595 595
 /* Flags which indicates type of Meeting Object */
596
-define('mtgEmpty', 0x00000000);    // Unspecified.
597
-define('mtgRequest', 0x00000001);    // Initial meeting request.
598
-define('mtgFull', 0x00010000);    // Full update.
599
-define('mtgInfo', 0x00020000);    // Informational update.
600
-define('mtgOutOfDate', 0x00080000);    // A newer Meeting Request object or Meeting Update object was received after this one.
601
-define('mtgDelegatorCopy', 0x00100000);    // This is set on the delegator's copy when a delegate will handle meeting-related objects.
602
-
603
-define('MAPI_ONE_OFF_UNICODE', 0x8000);        // the flag that defines whether the embedded strings are Unicode in one off entryids.
604
-define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001);        // the flag that specifies whether the recipient gets TNEF or not.
596
+define('mtgEmpty', 0x00000000); // Unspecified.
597
+define('mtgRequest', 0x00000001); // Initial meeting request.
598
+define('mtgFull', 0x00010000); // Full update.
599
+define('mtgInfo', 0x00020000); // Informational update.
600
+define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one.
601
+define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects.
602
+
603
+define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids.
604
+define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not.
605 605
 
606 606
 /* Mask flags for mapi_msgstore_advise */
607 607
 define('fnevCriticalError', 0x00000001);
Please login to merge, or discard this patch.
mapi/class.taskrequest.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 	 * carried in the IPM.TaskRequest item (although this information seems
24 24
 	 * redundant due to that information already being available in PR_MESSAGE_CLASS).
25 25
 	 */
26
-	define('tdmtNothing', 0);            // Value in IPM.Task items
27
-	define('tdmtTaskReq', 1);            // Assigner -> Assignee
28
-	define('tdmtTaskAcc', 2);            // Assignee -> Assigner
29
-	define('tdmtTaskDec', 3);            // Assignee -> Assigner
30
-	define('tdmtTaskUpd', 4);            // Assignee -> Assigner
31
-	define('tdmtTaskSELF', 5);            // Assigner -> Assigner (?)
26
+	define('tdmtNothing', 0); // Value in IPM.Task items
27
+	define('tdmtTaskReq', 1); // Assigner -> Assignee
28
+	define('tdmtTaskAcc', 2); // Assignee -> Assigner
29
+	define('tdmtTaskDec', 3); // Assignee -> Assigner
30
+	define('tdmtTaskUpd', 4); // Assignee -> Assigner
31
+	define('tdmtTaskSELF', 5); // Assigner -> Assigner (?)
32 32
 
33 33
 	/* The TaskHistory is used to show the last action on the task
34 34
 	 * on both the assigner and the assignee's side.
@@ -38,22 +38,22 @@  discard block
 block discarded – undo
38 38
 	 * the format 'Accepted by <user> on 01-01-2010 11:00'.
39 39
 	 */
40 40
 	define('thNone', 0);
41
-	define('thAccepted', 1);            // Set by assignee
42
-	define('thDeclined', 2);            // Set by assignee
43
-	define('thUpdated', 3);                // Set by assignee
41
+	define('thAccepted', 1); // Set by assignee
42
+	define('thDeclined', 2); // Set by assignee
43
+	define('thUpdated', 3); // Set by assignee
44 44
 	define('thDueDateChanged', 4);
45
-	define('thAssigned', 5);            // Set by assigner
45
+	define('thAssigned', 5); // Set by assigner
46 46
 
47 47
 	/* The TaskState value is used to differentiate the version of a task
48 48
 	 * in the assigner's folder and the version in the
49 49
 	 * assignee's folder. The buttons shown depend on this and
50 50
 	 * the 'taskaccepted' boolean (for the assignee)
51 51
 	 */
52
-	define('tdsNOM', 0);        // Got a response to a deleted task, and re-created the task for the assigner
53
-	define('tdsOWNNEW', 1);        // Not assigned
54
-	define('tdsOWN', 2);        // Assignee version
55
-	define('tdsACC', 3);        // Assigner version
56
-	define('tdsDEC', 4);        // Assigner version, but assignee declined
52
+	define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner
53
+	define('tdsOWNNEW', 1); // Not assigned
54
+	define('tdsOWN', 2); // Assignee version
55
+	define('tdsACC', 3); // Assigner version
56
+	define('tdsDEC', 4); // Assigner version, but assignee declined
57 57
 
58 58
 	/* The TaskAcceptanceState is used for the assigner to indicate state */
59 59
 	define('olTaskNotDelegated', 0);
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 
64 64
 	/* The task ownership indicates the role of the current user relative to the task. */
65 65
 	define('olNewTask', 0);
66
-	define('olDelegatedTask', 1);    // Task has been assigned
67
-	define('olOwnTask', 2);            // Task owned
66
+	define('olDelegatedTask', 1); // Task has been assigned
67
+	define('olOwnTask', 2); // Task owned
68 68
 
69 69
 	/* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */
70 70
 	define('tmrNone', 0);
71
-	define('tmrSent', 1);        // Task has been sent to multiple assignee
72
-	define('tmrReceived', 2);    // Task Request received has multiple assignee
71
+	define('tmrSent', 1); // Task has been sent to multiple assignee
72
+	define('tmrReceived', 2); // Task Request received has multiple assignee
73 73
 
74 74
 	// Task icon index.
75 75
 	define('ICON_TASK_ASSIGNEE', 0x00000502);
@@ -515,14 +515,14 @@  discard block
 block discarded – undo
515 515
 			// Set properties on Task Request
516 516
 			mapi_setprops($this->message, [
517 517
 				$this->props['task_goid'] => $taskid, /* our new task_goid */
518
-				$this->props['taskstate'] => tdsACC,         /* state for our outgoing request */
519
-				$this->props['taskmode'] => tdmtNothing,     /* we're not sending a change */
520
-				$this->props['updatecount'] => 2,            /* version 2 (no idea) */
518
+				$this->props['taskstate'] => tdsACC, /* state for our outgoing request */
519
+				$this->props['taskmode'] => tdmtNothing, /* we're not sending a change */
520
+				$this->props['updatecount'] => 2, /* version 2 (no idea) */
521 521
 				$this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */
522 522
 				$this->props['ownership'] => olDelegatedTask, /* Task has been assigned */
523
-				$this->props['taskhistory'] => thAssigned,    /* Task has been assigned */
523
+				$this->props['taskhistory'] => thAssigned, /* Task has been assigned */
524 524
 				PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT],
525
-				PR_ICON_INDEX => ICON_TASK_ASSIGNER,         /* Task request icon */
525
+				PR_ICON_INDEX => ICON_TASK_ASSIGNER, /* Task request icon */
526 526
 			]);
527 527
 			$this->setLastUser();
528 528
 			$this->setOwnerForAssignor();
@@ -537,10 +537,10 @@  discard block
 block discarded – undo
537 537
 
538 538
 			// Make it a task request, and put it in sent items after it is sent
539 539
 			mapi_setprops($outgoing, [
540
-				PR_MESSAGE_CLASS => "IPM.TaskRequest",         /* class is task request */
541
-				$this->props['taskstate'] => tdsOWN,         /* for the recipient he is the task owner */
542
-				$this->props['taskmode'] => tdmtTaskReq,    /* for the recipient it's a request */
543
-				$this->props['updatecount'] => 1,            /* version 2 is in the attachment */
540
+				PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */
541
+				$this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */
542
+				$this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */
543
+				$this->props['updatecount'] => 1, /* version 2 is in the attachment */
544 544
 				PR_SUBJECT_PREFIX => $prefix,
545 545
 				PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT],
546 546
 			]);
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 				}
1207 1207
 
1208 1208
 				foreach ($recips as $recip) {
1209
-					$recip[PR_RECIPIENT_TYPE] = MAPI_TO;    // Change recipient type to MAPI_TO
1209
+					$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1210 1210
 					mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1211 1211
 				}
1212 1212
 
Please login to merge, or discard this patch.
lib/grommunio/mapiutils.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 					],
143 143
 				], // EXISTS OR
144 144
 			],
145
-		];        // global OR
145
+		]; // global OR
146 146
 	}
147 147
 
148 148
 	/**
@@ -779,13 +779,13 @@  discard block
 block discarded – undo
779 779
 		$entryId = strtoupper($entryid);
780 780
 
781 781
 		$res = [
782
-			'abFlags' => '',  // BYTE[4],  4 bytes,  8 hex characters
783
-			'guid' => '',  // GUID,    16 bytes, 32 hex characters
784
-			'version' => '',  // ULONG,    4 bytes,  8 hex characters
785
-			'type' => '',  // ULONG,    4 bytes,  8 hex characters
786
-			'id' => '',  // ULONG,    4 bytes,  8 hex characters
787
-			'server' => '',  // CHAR,    variable length
788
-			'padding' => '',  // TCHAR[3], 4 bytes,  8 hex characters (upto 4 bytes)
782
+			'abFlags' => '', // BYTE[4],  4 bytes,  8 hex characters
783
+			'guid' => '', // GUID,    16 bytes, 32 hex characters
784
+			'version' => '', // ULONG,    4 bytes,  8 hex characters
785
+			'type' => '', // ULONG,    4 bytes,  8 hex characters
786
+			'id' => '', // ULONG,    4 bytes,  8 hex characters
787
+			'server' => '', // CHAR,    variable length
788
+			'padding' => '', // TCHAR[3], 4 bytes,  8 hex characters (upto 4 bytes)
789 789
 		];
790 790
 
791 791
 		$res['length'] = strlen($entryId);
@@ -830,13 +830,13 @@  discard block
 block discarded – undo
830 830
 		$entryId = strtoupper($entryid);
831 831
 
832 832
 		$res = [
833
-			'abFlags' => '',  // BYTE[4],  4 bytes,  8 hex characters
834
-			'guid' => '',  // GUID,    16 bytes, 32 hex characters
835
-			'version' => '',  // ULONG,    4 bytes,  8 hex characters
836
-			'type' => '',  // ULONG,    4 bytes,  8 hex characters
837
-			'uniqueId' => '',  // ULONG,   16 bytes,  32 hex characters
838
-			'server' => '',  // CHAR,    variable length
839
-			'padding' => '',  // TCHAR[3], 4 bytes,  8 hex characters (upto 4 bytes)
833
+			'abFlags' => '', // BYTE[4],  4 bytes,  8 hex characters
834
+			'guid' => '', // GUID,    16 bytes, 32 hex characters
835
+			'version' => '', // ULONG,    4 bytes,  8 hex characters
836
+			'type' => '', // ULONG,    4 bytes,  8 hex characters
837
+			'uniqueId' => '', // ULONG,   16 bytes,  32 hex characters
838
+			'server' => '', // CHAR,    variable length
839
+			'padding' => '', // TCHAR[3], 4 bytes,  8 hex characters (upto 4 bytes)
840 840
 		];
841 841
 
842 842
 		$res['length'] = strlen($entryId);
Please login to merge, or discard this patch.
lib/grommunio/grommunio.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1374,8 +1374,7 @@  discard block
 block discarded – undo
1374 1374
 
1375 1375
 		// if the search range is set limit the result to it, otherwise return all found messages
1376 1376
 		$rows = (is_array($searchRange) && isset($searchRange[0], $searchRange[1])) ?
1377
-			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) :
1378
-			mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1377
+			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1379 1378
 
1380 1379
 		$cnt = count($rows);
1381 1380
 		$items['searchtotal'] = $cnt;
@@ -2076,7 +2075,7 @@  discard block
 block discarded – undo
2076 2075
 	private function adviseStoreToSink($store) {
2077 2076
 		// check if we already advised the store
2078 2077
 		if (!in_array($store, $this->changesSinkStores)) {
2079
-			mapi_msgstore_advise($store, null, fnevNewMail |fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink);
2078
+			mapi_msgstore_advise($store, null, fnevNewMail | fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink);
2080 2079
 
2081 2080
 			if (mapi_last_hresult()) {
2082 2081
 				SLog::Write(LOGLEVEL_WARN, sprintf("Grommunio->adviseStoreToSink(): failed to advised store '%s' with code 0x%X. Polling will be performed.", $store, mapi_last_hresult()));
Please login to merge, or discard this patch.
lib/grommunio/mapiprovider.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1540,8 +1540,7 @@
 block discarded – undo
1540 1540
 						if (isset($exception->asbody)) {
1541 1541
 							$this->setASbody($exception->asbody, $exceptionprops, $appointmentprops);
1542 1542
 							$mapiexception["body"] = $exceptionprops[$appointmentprops["body"]] =
1543
-								(isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] :
1544
-								((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : "");
1543
+								(isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : "");
1545 1544
 						}
1546 1545
 
1547 1546
 						array_push($recur["changed_occurrences"], $mapiexception);
Please login to merge, or discard this patch.