public getAllSentmail ( boolean $unique = true ) : array | ||
$unique | boolean | If true, return the unique list of sent-mail mailboxes. If false, returns list of sent-mail mailboxes, with the key corresponding to the identity. |
Résultat | array | The array with the sent-mail IMP_Mailbox objects. |
public function getAllSentmail($unique = true)
{
$list = array();
foreach (array_keys($this->_identities) as $key) {
if ($mbox = $this->getValue(IMP_Mailbox::MBOX_SENT, $key)) {
$list[$key] = $mbox;
}
}
return $unique ? array_unique($list) : $list;
}