From ae853367edd2720e2f899aa273ca8ac1a08f0079 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 30 Jul 2013 13:16:52 -0400 Subject: [PATCH] Fix downloading binary files with (wrong) text/* content-type (#1489267) --- program/steps/mail/get.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 3334caa..e0c4e29 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -357,7 +357,8 @@ header("Content-Length: $size"); } - $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true); + // 8th argument disables re-formatting of text/* parts (#1489267) + $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true, null, false, 0, false); } } -- Gitblit v1.9.1