/**
* Sends a message.
*
- * @param string $email The e-mail list to send to.
- * @param IMP_Headers &$headers The IMP_Headers object holding this
- * message's headers.
- * @param mixed &$message Either the message text (string) or a
- * Horde_Mime_Message object that contains
- * the text to send.
- * @param string $charset The charset that was used for the headers.
+ * @param string $email The e-mail list to send to.
+ * @param Horde_Mime_Headers &$headers The object holding this
+ * message's headers.
+ * @param mixed &$message Either the message text (string)
+ * or a Horde_Mime_Message object
+ * that contains the text to send.
+ * @param string $charset The charset that was used for the
+ * headers.
*
* @return mixed True on success, PEAR_Error on error.
*/
/**
* Get "tieto" identity information.
*
- * @param IMP_Headers $h The headers object for the message.
+ * @param Horde_Mime_Headers $h The headers object for the message.
*
* @return mixed See Identity_imp::getMatchingIdentity().
*/
/**
* Determine the header information to display in the forward/reply.
*
- * @param IMP_Headers &$h The IMP_Headers object for the message.
+ * @param Horde_Mime_Headers &$h The headers object for the message.
*
* @return string The header information for the original message.
*/
/**
* Expand macros in attribution text when replying to messages.
*
- * @param string $line The line of attribution text.
- * @param string $from The email address of the original
- * sender.
- * @param IMP_Headers &$h The IMP_Headers object for the message.
+ * @param string $line The line of attribution text.
+ * @param string $from The email address of the original
+ * sender.
+ * @param Horde_Mime_Headers &$h The headers object for the message.
*
* @return string The attribution text.
*/
$mime->setType('multipart/digest');
$mime->addPart(new Horde_Mime_Part('message/rfc822', $data));
- $spam_headers = new IMP_Headers();
+ $spam_headers = new Horde_Mime_Headers();
$spam_headers->addMessageIdHeader();
$spam_headers->addHeader('Date', date('r'));
$spam_headers->addHeader('To', $GLOBALS['conf'][$action]['email']);
require_once IMP_BASE . '/lib/MIME/Headers.php';
$imp_imap = &IMP_IMAP::singleton();
$imp_imap->changeMbox($contents->getMessageMailbox(), IMP_IMAP_AUTO);
- $headers = new IMP_Headers($contents->getMessageIndex());
- $headers->buildHeaders(false);
+ $headers = $contents->getHeaderOb();
$headers->addResentHeaders($from_addr, $recip['header']['to']);
$mime_message = $contents->getMIMEMessage();