mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
add firstname to contacts
This commit is contained in:
parent
b0a6d3b0ef
commit
6f61b06bbb
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class NextcloudAddressBook implements \RainLoop\Providers\AddressBook\AddressBoo
|
|||
$properties = [];
|
||||
foreach ($aEmails as $sEmail => $sAddress) {
|
||||
$properties['EMAIL'] = $sAddress;
|
||||
$sFullName = \trim(\MailSo\Mime\Email::Parse(\trim($sAddress))->GetDisplayName());
|
||||
$sFullName = ucfirst(strstr($sAddress, '@', true));
|
||||
if ('' !== $sFullName) {
|
||||
$properties['FN'] = $sFullName;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue