Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package mapi-header-php for openSUSE:Factory
checked in at 2023-09-06 18:57:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mapi-header-php (Old)
and /work/SRC/openSUSE:Factory/.mapi-header-php.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mapi-header-php"
Wed Sep 6 18:57:05 2023 rev:4 rq:1109020 version:1.2.0.0db2832
Changes:
--------
--- /work/SRC/openSUSE:Factory/mapi-header-php/mapi-header-php.changes
2023-02-28 12:48:52.928573985 +0100
+++
/work/SRC/openSUSE:Factory/.mapi-header-php.new.1766/mapi-header-php.changes
2023-09-06 18:58:55.761133078 +0200
@@ -1,0 +2,9 @@
+Mon Aug 28 13:06:36 UTC 2023 - Jan Engelhardt <[email protected]>
+
+- Update to release 1.2 (0db2832)
+ * Rename CAL_DEFAULT to MAPI_CAL_DEFAULT
+ * Do not mark meeting requests as read
+ * Add freebusy permission bits to mapidefs
+ * Define MAPIException::setNotificationType()
+
+-------------------------------------------------------------------
Old:
----
mapi-header-php-1.1.0.70e984f.tar.xz
New:
----
mapi-header-php-1.2.0.0db2832.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mapi-header-php.spec ++++++
--- /var/tmp/diff_new_pack.QAf5bA/_old 2023-09-06 18:58:57.493194822 +0200
+++ /var/tmp/diff_new_pack.QAf5bA/_new 2023-09-06 18:58:57.497194965 +0200
@@ -19,7 +19,7 @@
%define _empty_manifest_terminate_build 0
Name: mapi-header-php
-Version: 1.1.0.70e984f
+Version: 1.2.0.0db2832
Release: 0
Summary: Common PHP MAPI header files for grommunio
License: AGPL-3.0-or-later
++++++ debian.changelog ++++++
--- /var/tmp/diff_new_pack.QAf5bA/_old 2023-09-06 18:58:57.537196391 +0200
+++ /var/tmp/diff_new_pack.QAf5bA/_new 2023-09-06 18:58:57.545196676 +0200
@@ -1,4 +1,4 @@
-mapi-header-php (1.1.0.70e984f) unstable; urgency=low
+mapi-header-php (1.2.0.0db2832) unstable; urgency=low
* Initial package.
++++++ mapi-header-php-1.1.0.70e984f.tar.xz ->
mapi-header-php-1.2.0.0db2832.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mapi-header-php-1.1.0.70e984f/.phpcs
new/mapi-header-php-1.2.0.0db2832/.phpcs
--- old/mapi-header-php-1.1.0.70e984f/.phpcs 2023-02-24 21:53:58.000000000
+0100
+++ new/mapi-header-php-1.2.0.0db2832/.phpcs 2023-08-28 15:05:09.000000000
+0200
@@ -11,6 +11,7 @@
'blank_line_before_statement' => ['statements' => ['case',
'continue',
'declare', 'default', 'exit', 'goto', 'phpdoc',
'return', 'switch', 'throw', 'try', 'yield', ]],
'braces' => ['position_after_functions_and_oop_constructs' =>
'same'],
+ 'curly_braces_position' => ['functions_opening_brace' =>
'same_line', 'classes_opening_brace' => 'same_line'],
'concat_space' => ['spacing' => 'one'],
'control_structure_continuation_position' => ['position' =>
'next_line'],
'indentation_type' => true,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mapi-header-php-1.1.0.70e984f/Makefile
new/mapi-header-php-1.2.0.0db2832/Makefile
--- old/mapi-header-php-1.1.0.70e984f/Makefile 2023-02-24 21:53:58.000000000
+0100
+++ new/mapi-header-php-1.2.0.0db2832/Makefile 2023-08-28 15:05:09.000000000
+0200
@@ -4,10 +4,11 @@
datadir = ${prefix}/share
pkgdatadir = ${datadir}/${PACKAGE_NAME}
PACKAGE_NAME = php-mapi
+INSTALL = install -p
MKDIR_P = mkdir -p
all:
install:
${MKDIR_P} ${DESTDIR}${pkgdatadir}
- install -m0644 *.php ${DESTDIR}${pkgdatadir}/
+ ${INSTALL} -m0644 *.php ${DESTDIR}${pkgdatadir}/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mapi-header-php-1.1.0.70e984f/changelog.rst
new/mapi-header-php-1.2.0.0db2832/changelog.rst
--- old/mapi-header-php-1.1.0.70e984f/changelog.rst 1970-01-01
01:00:00.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/changelog.rst 2023-08-28
15:05:09.000000000 +0200
@@ -0,0 +1,7 @@
+1.2 (2023-08-28)
+================
+
+* Rename CAL_DEFAULT to MAPI_CAL_DEFAULT
+* Do not mark meeting requests as read
+* Add freebusy permission bits to mapidefs
+* Define MAPIException::setNotificationType()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/mapi-header-php-1.1.0.70e984f/class.baseexception.php
new/mapi-header-php-1.2.0.0db2832/class.baseexception.php
--- old/mapi-header-php-1.1.0.70e984f/class.baseexception.php 2023-02-24
21:53:58.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/class.baseexception.php 2023-08-28
15:05:09.000000000 +0200
@@ -54,6 +54,11 @@
public $title;
/**
+ * The notification type by which exception needs to be shown at client
side.
+ */
+ public $notificationType = "";
+
+ /**
* Construct the exception.
*
* @param string $errorMessage
@@ -143,6 +148,22 @@
}
/**
+ * Function sets a type of notification by which exception needs to be
shown at client side.
+ *
+ * @param string $notificationType type of notification to show an
exception
+ */
+ public function setNotificationType($notificationType) {
+ $this->notificationType = $notificationType;
+ }
+
+ /**
+ * @return string a type of notification to show an exception
+ */
+ public function getNotificationType() {
+ return $this->notificationType;
+ }
+
+ /**
* It will return details error message if allowToShowDetailsMessage is
set.
*
* @return string returns details error message
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/mapi-header-php-1.1.0.70e984f/class.baserecurrence.php
new/mapi-header-php-1.2.0.0db2832/class.baserecurrence.php
--- old/mapi-header-php-1.1.0.70e984f/class.baserecurrence.php 2023-02-24
21:53:58.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/class.baserecurrence.php 2023-08-28
15:05:09.000000000 +0200
@@ -618,7 +618,7 @@
return;
}
- $rdata = pack("vvvvv", 0x3004, 0x3004, $rtype, (int)
$this->recur["subtype"], CAL_DEFAULT);
+ $rdata = pack("vvvvv", 0x3004, 0x3004, $rtype, (int)
$this->recur["subtype"], MAPI_CAL_DEFAULT);
$weekstart = 1; // monday
$forwardcount = 0;
$restocc = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/mapi-header-php-1.1.0.70e984f/class.meetingrequest.php
new/mapi-header-php-1.2.0.0db2832/class.meetingrequest.php
--- old/mapi-header-php-1.1.0.70e984f/class.meetingrequest.php 2023-02-24
21:53:58.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/class.meetingrequest.php 2023-08-28
15:05:09.000000000 +0200
@@ -92,6 +92,7 @@
PR_ROWID,
PR_OBJECT_TYPE,
PR_SEARCH_KEY,
+ PR_SMTP_ADDRESS,
];
/**
@@ -770,9 +771,6 @@
* If user is responding from calendar then item is opened and
properties are set such as meetingstatus, responsestatus, busystatus etc.
*/
if ($this->isMeetingRequest($messageprops[PR_MESSAGE_CLASS])) {
- // While processing the item mark it as read.
- mapi_message_setreadflag($this->message,
SUPPRESS_RECEIPT);
-
// This meeting request item is recurring, so find all
occurrences and saves them all as exceptions to this meeting request item.
if (isset($messageprops[$this->proptags['recurring']])
&& $messageprops[$this->proptags['recurring']] == true) {
$calendarItem = false;
@@ -797,6 +795,9 @@
// for the first time
$processed = true;
}
+ // While we applying updates of MR then
all local categories will be removed,
+ // So get the local categories of all
occurrence before applying update from organiser.
+ $localCategories =
$this->getLocalCategories($calendarItem, $store, $calFolder);
}
if (!$processed) {
@@ -818,10 +819,6 @@
$props = mapi_getprops($this->message,
[PR_ENTRYID]);
}
- // While we applying updates of MR then all
local categories will be removed,
- // So get the local categories of all
occurrence before applying update from organiser.
- $localCategories =
$this->getLocalCategories($calendarItem, $store, $calFolder);
-
$props[PR_MESSAGE_CLASS] = 'IPM.Appointment';
// When meeting requests are generated by
third-party solutions, we might be missing the updatecounter property.
if
(!isset($props[$this->proptags['updatecounter']])) {
@@ -887,6 +884,11 @@
}
}
+
if(!isset($props[$this->proptags["recurring_pattern"]])) {
+ $recurr = new Recurrence($store,
$calendarItem);
+ $recurr->saveRecurrencePattern();
+ }
+
mapi_savechanges($calendarItem);
// After applying update of organiser all local
categories of occurrence was removed,
@@ -899,7 +901,8 @@
// open wastebasket of currently logged
in user and move the meeting request to it
// for delegates this will be
delegate's wastebasket folder
$wastebasket =
$this->openDefaultWastebasket($this->openDefaultStore());
- mapi_folder_copymessages($calFolder,
[$props[PR_ENTRYID]], $wastebasket, MESSAGE_MOVE);
+ $sourcefolder =
$this->openParentFolder();
+ mapi_folder_copymessages($sourcefolder,
[$props[PR_ENTRYID]], $wastebasket, MESSAGE_MOVE);
}
$entryid = $props[PR_ENTRYID];
@@ -1000,14 +1003,14 @@
}
$calItemProps[$this->proptags['recurring_pattern']] = '';
-
$calItemProps[$this->proptags['alldayevent']] =
$calItemProps[$this->proptags['alldayevent']] ?? false;
-
$calItemProps[$this->proptags['private']] =
$calItemProps[$this->proptags['private']] ?? false;
-
$calItemProps[$this->proptags['meetingstatus']] =
$calItemProps[$this->proptags['meetingstatus']] ?? olMeetingReceived;
- if
(isset($calItemProps[$this->proptags['startdate']])) {
-
$calItemProps[$this->proptags['commonstart']] =
$calItemProps[$this->proptags['startdate']];
+
$calItemProps[$this->proptags['alldayevent']] =
$messageprops[$this->proptags['alldayevent']] ?? false;
+
$calItemProps[$this->proptags['private']] =
$messageprops[$this->proptags['private']] ?? false;
+
$calItemProps[$this->proptags['meetingstatus']] =
$messageprops[$this->proptags['meetingstatus']] ?? olMeetingReceived;
+ if
(isset($messageprops[$this->proptags['startdate']])) {
+
$calItemProps[$this->proptags['commonstart']] =
$calItemProps[$this->proptags['startdate']] =
$messageprops[$this->proptags['startdate']];
}
- if
(isset($calItemProps[$this->proptags['duedate']])) {
-
$calItemProps[$this->proptags['commonend']] =
$calItemProps[$this->proptags['duedate']];
+ if
(isset($messageprops[$this->proptags['duedate']])) {
+
$calItemProps[$this->proptags['commonend']] =
$calItemProps[$this->proptags['duedate']] =
$messageprops[$this->proptags['duedate']];
}
mapi_setprops($calmsg,
$proposeNewTimeProps + $calItemProps);
@@ -1019,6 +1022,7 @@
PR_SENT_REPRESENTING_EMAIL_ADDRESS,
PR_SENT_REPRESENTING_ADDRTYPE,
PR_SENT_REPRESENTING_SEARCH_KEY,
+
PR_SENT_REPRESENTING_SMTP_ADDRESS,
]);
// add owner to recipient table
@@ -1640,7 +1644,7 @@
$this->setMeetingRequest($basedate);
}
else {
- $counter =
$messageprops[$this->proptags['last_updatecounter']] + 1;
+ $counter =
(isset($messageprops[$this->proptags['last_updatecounter']]) ?? 0) + 1;
// increment value of last_updatecounter,
last_updatecounter will be common for recurring series
// so even if you sending an exception only you need to
update the last_updatecounter in the recurring series message
@@ -2329,7 +2333,7 @@
if (!$hasOrganizer) {
// Create organizer.
$organizer = [];
- $organizer[PR_ENTRYID] =
$messageProps[PR_SENT_REPRESENTING_ENTRYID];
+ $organizer[PR_ENTRYID] =
$organizer[PR_RECIPIENT_ENTRYID] = $messageProps[PR_SENT_REPRESENTING_ENTRYID];
$organizer[PR_DISPLAY_NAME] =
$messageProps[PR_SENT_REPRESENTING_NAME];
$organizer[PR_EMAIL_ADDRESS] =
$messageProps[PR_SENT_REPRESENTING_EMAIL_ADDRESS];
$organizer[PR_RECIPIENT_TYPE] = MAPI_TO;
@@ -2338,6 +2342,7 @@
$organizer[PR_RECIPIENT_TRACKSTATUS] =
olRecipientTrackStatusNone;
$organizer[PR_RECIPIENT_FLAGS] = recipSendable |
recipOrganizer;
$organizer[PR_SEARCH_KEY] =
$messageProps[PR_SENT_REPRESENTING_SEARCH_KEY];
+ $organizer[PR_SMTP_ADDRESS] =
$messageProps[PR_SENT_REPRESENTING_SMTP_ADDRESS] ??
$messageProps[PR_SENT_REPRESENTING_EMAIL_ADDRESS];
// Add organizer to recipients list.
array_unshift($recipients, $organizer);
@@ -3582,8 +3587,11 @@
return false;
}
+ // there is no goid - no items can be found - aborting
+ if (empty($props[$this->proptags['goid']])) {
+ return false;
+ }
$globalId = $props[$this->proptags['goid']];
- $cleanGlobalId = $props[$this->proptags['goid2']];
// If Delegate is processing Meeting Request/Response for
Delegator then retrieve Delegator's store and calendar.
if (isset($props[PR_RCVD_REPRESENTING_ENTRYID])) {
@@ -3612,7 +3620,11 @@
*/
$entryids = $this->findCalendarItems($globalId, $calFolder);
if ($basedate !== false && empty($entryids)) {
- $entryids = $this->findCalendarItems($cleanGlobalId,
$calFolder, true);
+ // only search if a goid2 is available
+ if (!empty($props[$this->proptags['goid2']])) {
+ $cleanGlobalId =
$props[$this->proptags['goid2']];
+ $entryids =
$this->findCalendarItems($cleanGlobalId, $calFolder, true);
+ }
}
// there should be only one item returned
@@ -3623,7 +3635,9 @@
}
// open calendar item and return it
- return mapi_msgstore_openentry($store, $entryids[0]);
+ if ($store) {
+ return mapi_msgstore_openentry($store,
$entryids[0]);
+ }
}
// no items found in calendar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mapi-header-php-1.1.0.70e984f/mapidefs.php
new/mapi-header-php-1.2.0.0db2832/mapidefs.php
--- old/mapi-header-php-1.1.0.70e984f/mapidefs.php 2023-02-24
21:53:58.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/mapidefs.php 2023-08-28
15:05:09.000000000 +0200
@@ -488,6 +488,8 @@
define('ecRightsFolderAccess', 0x00000100);
define('ecRightsContact', 0x00000200);
define('ecRightsFolderVisible', 0x00000400);
+define('ecRightsFreeBusySimple', 0x00000800);
+define('ecRightsFreeBusyDetailed', 0x00001000);
define('ecRightsAll', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned |
ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny |
ecRightsCreateSubfolder | ecRightsFolderAccess | ecRightsFolderVisible);
define('ecRightsSecretary', ecRightsReadAny | ecRightsCreate |
ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny |
ecRightsFolderVisible);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mapi-header-php-1.1.0.70e984f/mapiguid.php
new/mapi-header-php-1.2.0.0db2832/mapiguid.php
--- old/mapi-header-php-1.1.0.70e984f/mapiguid.php 2023-02-24
21:53:58.000000000 +0100
+++ new/mapi-header-php-1.2.0.0db2832/mapiguid.php 2023-08-28
15:05:09.000000000 +0200
@@ -32,3 +32,5 @@
define('MUIDEMSAB', makeguid("{C840A7DC-42C0-1A10-B4B9-08002B2FE182}"));
define('PSETID_AirSync', makeguid("{71035549-0739-4DCB-9163-00F0580DBBDF}"));
+
+define('PSETID_CustomerLocation',
makeguid("{A719E259-2A9A-4FB8-BAB3-3A9F02970E4B}"));
\ No newline at end of file
++++++ mapi-header-php.dsc ++++++
--- /var/tmp/diff_new_pack.QAf5bA/_old 2023-09-06 18:58:57.653200526 +0200
+++ /var/tmp/diff_new_pack.QAf5bA/_new 2023-09-06 18:58:57.653200526 +0200
@@ -1,7 +1,7 @@
Format: 1.0
Source: mapi-header-php
Architecture: any
-Version: 1.1.0.70e984f
+Version: 1.2.0.0db2832
DEBTRANSFORM-RELEASE: 1
Maintainer: Grommunio <[email protected]>
Homepage: https://grommunio.com