Return a Maillog entry for the specified Message-ID.
public mail_getMaillog ( string $mid ) : Horde_History_Log | false | ||
$mid | string | The Message-ID of the message. |
Результат | Horde_History_Log | false | The history log or false if not found. |
/** * Return the last verb executed for the specified Message-ID. * * @param string $mid The Message-ID. * * @return array The most recent history log entry array for $mid. */ protected function _getLastVerb($mid) { if (!array_key_exists($mid, $this->_verbs)) { $log = $this->_connector->mail_getMaillog($mid); $last = array(); foreach ($log as $entry) { if (empty($last) || $last['ts'] < $entry['ts']) { $last = $entry; } } $this->_verbs[$mid] = $last; } $this->_logger->info(sprintf('[%s] Fetching verb for %s.', $this->_pid, $mid)); return $this->_verbs[$mid]; }
/** * Return the last verb executed for the specified Message-ID. * * @param string $mid The Message-ID. * * @return array The most recent history log entry array for $mid. */ protected function _getLastVerb($mid) { if (!array_key_exists($mid, $this->_verbs)) { $this->_logger->info('FETCHING VERB'); $log = $this->_connector->mail_getMaillog($mid); $last = array(); foreach ($log as $entry) { if (empty($last) || $last['ts'] < $entry['ts']) { $last = $entry; } } $this->_verbs[$mid] = $last; } $this->_logger->info('RETURNING VERB'); return $this->_verbs[$mid]; }