IMP_Compose::_logSentmail PHP Méthode

_logSentmail() protected méthode

Log a sent action to the sentmail backend.
protected _logSentmail ( Horde_Mime_Headers $headers, Horde_Mail_Rfc822_List $recip, boolean $success ) : string
$headers Horde_Mime_Headers Message headers.
$recip Horde_Mail_Rfc822_List Message recipients.
$success boolean Send success.
Résultat string Message-ID value.
    protected function _logSentmail(Horde_Mime_Headers $headers, Horde_Mail_Rfc822_List $recip, $success)
    {
        global $injector;
        $msgid = ($hdr = $headers['Message-ID']) ? reset($hdr->getIdentificationOb()->ids) : null;
        $mapping = array(self::REPLY => IMP_Sentmail::REPLY, self::FORWARD => IMP_Sentmail::FORWARD, self::REDIRECT => IMP_Sentmail::REDIRECT);
        $reply_type = intval($this->replyType(true));
        $injector->getInstance('IMP_Sentmail')->log(isset($mapping[$reply_type]) ? $mapping[$reply_type] : IMP_Sentmail::NEWMSG, $msgid, $recip, $success);
        return $msgid;
    }