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;
}