11<?php
2+
23/*
34 * SPDX-License-Identifier: AGPL-3.0-only
45 * SPDX-FileCopyrightText: Copyright 2007-2016 Zarafa Deutschland GmbH
5- * SPDX-FileCopyrightText: Copyright 2020-2024 grommunio GmbH
6+ * SPDX-FileCopyrightText: Copyright 2020-2025 grommunio GmbH
67 */
78
89class MAPIProvider {
@@ -306,7 +307,7 @@ private function getAppointment($mapimessage, $contentparameters) {
306307 SLog::Write (LOGLEVEL_DEBUG , sprintf ("MAPIProvider->getAppointment: adding ourself as an attendee for iOS6 workaround " ));
307308 $ attendee = new SyncAttendee ();
308309
309- $ meinfo = nsp_getuserinfo (Request::GetUser ());
310+ $ meinfo = nsp_getuserinfo (Request::GetUserIdentifier ());
310311
311312 if (is_array ($ meinfo )) {
312313 $ attendee ->email = $ meinfo ["primary_email " ];
@@ -322,7 +323,7 @@ private function getAppointment($mapimessage, $contentparameters) {
322323 // If it's an appointment which doesn't have any attendees, we have to make sure that
323324 // the user is the owner or it will not work properly with android devices
324325 if (isset ($ messageprops [$ appointmentprops ["meetingstatus " ]]) && $ messageprops [$ appointmentprops ["meetingstatus " ]] == olNonMeeting && empty ($ message ->attendees )) {
325- $ meinfo = nsp_getuserinfo (Request::GetUser ());
326+ $ meinfo = nsp_getuserinfo (Request::GetUserIdentifier ());
326327
327328 if (is_array ($ meinfo )) {
328329 $ message ->organizeremail = $ meinfo ["primary_email " ];
@@ -805,7 +806,7 @@ private function getEmail($mapimessage, $contentparameters) {
805806 // do it so that the attendee status is updated on the mobile
806807 if (!isset ($ messageprops [$ emailproperties ["processed " ]])) {
807808 // check if we are not sending the MR so we can process it
808- $ cuser = GSync::GetBackend ()->GetUserDetails (GSync:: GetBackend ()-> GetCurrentUsername ());
809+ $ cuser = GSync::GetBackend ()->GetUserDetails (Request:: GetUserIdentifier ());
809810 if (isset ($ cuser ["emailaddress " ]) && $ cuser ["emailaddress " ] != $ fromaddr ) {
810811 if (!isset ($ req )) {
811812 $ req = new Meetingrequest ($ this ->store , $ mapimessage , $ this ->session );
@@ -1025,7 +1026,8 @@ public function GetFolder($folderprops) {
10251026
10261027 // ignore certain undesired folders, like "RSS Feeds", "Suggested contacts" and Journal
10271028 if ((isset ($ folderprops [PR_CONTAINER_CLASS ]) && (
1028- $ folderprops [PR_CONTAINER_CLASS ] == "IPF.Note.OutlookHomepage " || $ folderprops [PR_CONTAINER_CLASS ] == "IPF.Journal " )) ||
1029+ $ folderprops [PR_CONTAINER_CLASS ] == "IPF.Note.OutlookHomepage " || $ folderprops [PR_CONTAINER_CLASS ] == "IPF.Journal "
1030+ )) ||
10291031 in_array ($ folderprops [PR_ENTRYID ], $ this ->getSpecialFoldersData ())
10301032 ) {
10311033 SLog::Write (LOGLEVEL_DEBUG , sprintf ("MAPIProvider->GetFolder(): folder '%s' should not be synchronized " , $ folderprops [PR_DISPLAY_NAME ]));
@@ -2142,7 +2144,7 @@ private function setTask($mapimessage, $task) {
21422144 $ p = [$ taskprops ["owner " ]];
21432145 $ owner = $ this ->getProps ($ mapimessage , $ p );
21442146 if (!isset ($ owner [$ taskprops ["owner " ]])) {
2145- $ userinfo = nsp_getuserinfo (Request::GetUser ());
2147+ $ userinfo = nsp_getuserinfo (Request::GetUserIdentifier ());
21462148 if (mapi_last_hresult () == NOERROR && isset ($ userinfo ["fullname " ])) {
21472149 $ props [$ taskprops ["owner " ]] = $ userinfo ["fullname " ];
21482150 }
0 commit comments