mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Get account local sqlite AddressBook working (but still inactive)
This commit is contained in:
parent
8d6eb96c8f
commit
e364b6286f
3 changed files with 44 additions and 26 deletions
|
|
@ -133,12 +133,16 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
|
|||
$oParams->iLimit = 999; // Is the max
|
||||
$oMessageList = $this->MailClient()->MessageList($oParams);
|
||||
foreach ($oMessageList as $oMessage) {
|
||||
if ($rCsv) {
|
||||
$oContact = $this->MessageAsContact($oMessage);
|
||||
\RainLoop\Providers\AddressBook\Utils::VCardToCsv($rCsv, $oContact, $bCsvHeader);
|
||||
$bCsvHeader = false;
|
||||
} else if ($xCard = $this->fetchXCardFromMessage($oMessage)) {
|
||||
echo $xCard->serialize();
|
||||
try {
|
||||
if ($rCsv) {
|
||||
$oContact = $this->MessageAsContact($oMessage);
|
||||
\RainLoop\Providers\AddressBook\Utils::VCardToCsv($rCsv, $oContact->vCard, $bCsvHeader);
|
||||
$bCsvHeader = false;
|
||||
} else if ($xCard = $this->fetchXCardFromMessage($oMessage)) {
|
||||
echo $xCard->serialize();
|
||||
}
|
||||
} catch (\Throwable $oExc) {
|
||||
$this->oLogger && $this->oLogger->WriteException($oExc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue