50 return self::TYPE_MAILBOX;
181 return array_keys($this->_mailboxes);
191 foreach ((array) $addresses as $address)
193 unset($this->_mailboxes[$address]);
225 $actualMailboxes = array();
227 foreach ($mailboxes as $key => $value)
240 $actualMailboxes[$address] = $name;
243 return $actualMailboxes;
284 foreach ($mailboxes as $email => $name)
286 $mailboxStr = $email;
290 $mailboxStr = $nameStr .
' <' . $mailboxStr .
'>';
292 $strings[] = $mailboxStr;
306 if (!preg_match(
'/^' . $this->
getGrammar(
'addr-spec') .
'$/D',
310 'Address in mailbox given [' . $address .
311 '] does not comply with RFC 2822, 3.6.2.'