protected function arrayToAddress($addresses) {
        $addressesAsString = array();
        foreach ($addresses as $address) {
            $addressesAsString[] = $this->toAddress($address);
        }
        return $addressesAsString;
    }
protected function arrayToAddress($addresses) {
        $addressesAsString = array();
        foreach ($addresses as $address) {
            $addressesAsString[] = $this->toAddress($address);
        }
        return $addressesAsString;
    }
protected function arrayToAddress ( $ addresses ) { $ addressesAsString = array ( ) ; foreach ( $ addresses as $ address ) { $ addressesAsString [ ] = $ this -> toAddress ( $ address ) ; } return $ addressesAsString ; }
Converts imap given array of addresses as strings

@param array $addresses imap given addresses as array
@return array with strings (e.g. ["Name <email@bla.de>", "Name2 <email2@bla.de>"]
Converts imap given array of addresses as strings