15 $parsed_addresses = imap_rfc822_parse_adrlist($a_addresses, $this->installationHost);
18 $valid_parsed_addresses = array_filter($parsed_addresses,
function ($address) {
19 return '.SYNTAX-ERROR.' != $address->host;
22 if ($parsed_addresses != $valid_parsed_addresses) {
23 throw new \ilMailException($a_addresses);
26 return array_map(
function ($address) {
27 return new \ilMailAddress($address->mailbox, $address->host);
28 }, $valid_parsed_addresses);
Class ilBaseMailRfc822AddressParser.
Class ilMailImapRfc822AddressParser.
parseAddressString(string $a_addresses)