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:22:05 +0200
commit64599448608f16e093b1fd21492052b64ad2a939 (patch)
tree6b311c94cdd3bfb7156d18c10b27479805453e45
parent0fddf7a6a23f4940fcd4c2c3b646cc4d3c01db8b (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 02d57c7dc..b260d2c85 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -354,7 +354,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;