X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fsteps%2Fmail%2Fget.inc;fp=program%2Fsteps%2Fmail%2Fget.inc;h=acec6c80a36349a2c03e9c3164f80d29e9d0e916;hb=b68022ca3782d5eb5a1a7ef6f8cf7abe1dc15bd6;hp=23d412d613afe0eafaf0eba90f6e526a03241f76;hpb=162c8d010934c01433e8125382fb493712575198;p=roundcube.git diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 23d412d..acec6c8 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -15,7 +15,7 @@ | Author: Thomas Bruederli | +-----------------------------------------------------------------------+ - $Id: get.inc 2282 2009-02-08 20:38:54Z thomasb $ + $Id: get.inc 2912 2009-09-04 10:38:18Z thomasb $ */ @@ -25,14 +25,15 @@ if (!empty($_GET['_preload'])) { $url = str_replace('&_preload=1', '', $_SERVER['REQUEST_URI']); $message = rcube_label('loadingdata'); - print "\n\n" . - '' . - "\n\n" . - $message . - "\n\n"; + header('Content-Type: text/html; charset=' . RCMAIL_CHARSET); + print "\n\n" + . '' . "\n" + . '' . "\n" + . "\n\n$message\n\n"; exit; } +ob_end_clean(); // similar code as in program/steps/mail/show.inc if (!empty($_GET['_uid'])) { @@ -112,7 +113,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) { // turn off output buffering and print part content if ($part->body) echo $part->body; - else + else if ($part->size) $IMAP->get_message_part($MESSAGE->uid, $part->mime_id, $part, true); }