Skip to content

Commit

Permalink
chore: revert temporary horde mime workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Aug 12, 2024
1 parent 6a3172a commit f720dfd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Service/MailTransmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ public function sendMessage(Account $account, LocalMessage $localMessage): void
// Send the message
try {
$mail->send($transport, false, false);
// FIXME: Fix encoding inconsistencies upstream and use stream=false instead
// - stream=false defaults to 7bit quoted-printable
// - stream=true defaults to 8bit
// However, the headers are taken from the base part and always indicate the 8bit
// encoding.
$localMessage->setRaw(stream_get_contents($mail->getRaw(true)));
$localMessage->setRaw($mail->getRaw(false));
} catch (Horde_Mime_Exception $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
if (in_array($e->getCode(), self::RETRIABLE_CODES, true)) {
Expand Down

0 comments on commit f720dfd

Please sign in to comment.