mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Log some info for #520
This commit is contained in:
parent
a9dad5c79b
commit
9ed52fd070
1 changed files with 7 additions and 2 deletions
|
|
@ -157,8 +157,11 @@ class PdoAddressBook
|
||||||
// $this->oLogger->WriteDump($aRemoteSyncData);
|
// $this->oLogger->WriteDump($aRemoteSyncData);
|
||||||
// $this->oLogger->WriteDump($aDatabaseSyncData);
|
// $this->oLogger->WriteDump($aDatabaseSyncData);
|
||||||
|
|
||||||
|
$bReadWrite = $this->isDAVReadWrite();
|
||||||
|
|
||||||
// Delete remote when Mode = read + write
|
// Delete remote when Mode = read + write
|
||||||
if ($this->isDAVReadWrite()) {
|
if ($bReadWrite) {
|
||||||
|
\SnappyMail\Log::info('PdoAddressBook', 'Sync() is import and export');
|
||||||
foreach ($aDatabaseSyncData as $sKey => $aData) {
|
foreach ($aDatabaseSyncData as $sKey => $aData) {
|
||||||
if ($aData['deleted']) {
|
if ($aData['deleted']) {
|
||||||
unset($aDatabaseSyncData[$sKey]);
|
unset($aDatabaseSyncData[$sKey]);
|
||||||
|
|
@ -168,6 +171,8 @@ class PdoAddressBook
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
\SnappyMail\Log::info('PdoAddressBook', 'Sync() is import only');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete from db
|
// Delete from db
|
||||||
|
|
@ -210,7 +215,7 @@ class PdoAddressBook
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add remote when Mode = read + write
|
// Add remote when Mode = read + write
|
||||||
if ($sExsistensBody && $this->isDAVReadWrite()) {
|
if ($sExsistensBody && $bReadWrite) {
|
||||||
$oResponse = $this->davClientRequest($oClient, 'PUT',
|
$oResponse = $this->davClientRequest($oClient, 'PUT',
|
||||||
$sPath.(\strlen($mExsistenRemoteID) ? $mExsistenRemoteID : $oContact->IdContactStr.'.vcf'),
|
$sPath.(\strlen($mExsistenRemoteID) ? $mExsistenRemoteID : $oContact->IdContactStr.'.vcf'),
|
||||||
$oContact->vCard->serialize() . "\r\n\r\n");
|
$oContact->vCard->serialize() . "\r\n\r\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue