Commit 91070e10 authored by skummer's avatar skummer

ZP-500 #comment log email address and error code when resolving the user fails

git-svn-id: https://z-push.org/svn/z-push/trunk@1872 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 55edf6f2
...@@ -268,9 +268,12 @@ class MAPIProvider { ...@@ -268,9 +268,12 @@ class MAPIProvider {
$attendee->email = w2u($row[PR_EMAIL_ADDRESS]); $attendee->email = w2u($row[PR_EMAIL_ADDRESS]);
//if address type is ZARAFA, the PR_EMAIL_ADDRESS contains username //if address type is ZARAFA, the PR_EMAIL_ADDRESS contains username
elseif ($row[PR_ADDRTYPE] == "ZARAFA") { elseif ($row[PR_ADDRTYPE] == "ZARAFA") {
$userinfo = mapi_zarafa_getuser_by_name($this->store, $row[PR_EMAIL_ADDRESS]); $userinfo = @mapi_zarafa_getuser_by_name($this->store, $row[PR_EMAIL_ADDRESS]);
if (is_array($userinfo) && isset($userinfo["emailaddress"])) if (is_array($userinfo) && isset($userinfo["emailaddress"])) {
$attendee->email = w2u($userinfo["emailaddress"]); $attendee->email = w2u($userinfo["emailaddress"]);
}
else
ZLog::Write(LOGLEVEL_WARN, sprintf("MAPIProvider->getAppointment: The attendee '%s' of type ZARAFA can not be resolved. Code: 0x%X", $row[PR_EMAIL_ADDRESS], mapi_last_hresult()));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment