summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/get.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 842c60536..22658346e 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -100,6 +100,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) {
$OUTPUT->write(rcmail_print_body($part, array('safe' => $MESSAGE->is_safe, 'inline_html' => false)));
}
else {
+ header(sprintf('Content-Length: %d', $part->size));
header(sprintf('Content-Disposition: %s; filename="%s";',
$_GET['_download'] ? 'attachment' : 'inline',
$part->filename ? abbreviate_string($part->filename, 55) : "roundcube.$ctype_secondary"));