summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-08-14 15:22:05 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-08-14 15:32:43 +0200
commit2d284df861ed0d0da5e9c36c437c32ba8fbf6e68 (patch)
treebc66152d31c43dd994aa113eed03e4823a12539b
parentef4e6b9aedb7ffd058220de2d8ab2b44b1447d00 (diff)
Don't read attachment contents from cache when downloading. Cache might have line endings converted
-rw-r--r--program/steps/mail/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 8f869c67c..b10a052d6 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -356,7 +356,7 @@ else if (strlen($part_id)) {
}
// send part as-it-is
else {
- if ($part->body) {
+ if ($part->body && empty($plugin['download'])) {
header("Content-Length: " . strlen($part->body));
echo $part->body;
$sent = true;