mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +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 = [];
|
$properties = [];
|
||||||
foreach ($aEmails as $sEmail => $sAddress) {
|
foreach ($aEmails as $sEmail => $sAddress) {
|
||||||
$properties['EMAIL'] = $sAddress;
|
$properties['EMAIL'] = $sAddress;
|
||||||
$sFullName = \trim(\MailSo\Mime\Email::Parse(\trim($sAddress))->GetDisplayName());
|
$sFullName = ucfirst(strstr($sAddress, '@', true));
|
||||||
if ('' !== $sFullName) {
|
if ('' !== $sFullName) {
|
||||||
$properties['FN'] = $sFullName;
|
$properties['FN'] = $sFullName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue