Skip to content

Commit

Permalink
Bug: 12936 Fix saving s/mime signed to sent mail.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 27, 2014
1 parent 10e394d commit 993e80d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ public function sendMail(
try {
// Need the message if we are saving to sent.
if ($save) {
$copy = $raw_message->getMimeObject();
$copy = $raw_message->getString();
}
} catch (Horde_Mail_Exception $e) {
$this->_logger->err($e->getMessage());
Expand Down Expand Up @@ -1976,7 +1976,7 @@ public function sendMail(
try {
$mail->send($GLOBALS['injector']->getInstance('Horde_Mail'));
if ($save) {
$copy = $mail->getBasePart();
$copy = $mail->getBasePart()->toString(array('stream' => true));
}
} catch (Horde_Mail_Exception $e) {
$this->_logger->err($e->getMessage());
Expand All @@ -1992,11 +1992,7 @@ public function sendMail(
$this->_pid,
$sf));
$flags = array(Horde_Imap_Client::FLAG_SEEN);
if ($headers->getValue('Content-Transfer-Encoding')) {
$copy->setTransferEncoding($headers->getValue('Content-Transfer-Encoding'), array('send' => true));
}
$headers = $copy->addMimeHeaders(array('headers' => $headers));
$msg = $copy->toString(array('headers' => $headers->toString(array('charset' => 'UTF-8')), 'stream' => true));
$msg = $raw_message->getString();

// Ignore issues sending to sent, in case the folder isn't
// available.
Expand Down

0 comments on commit 993e80d

Please sign in to comment.