summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6c1feae)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1233
7612ce4b-ef26-0410-bec9-
ea0150e637f0
case "text":
$body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id);
$body = decodeBody($body, $header->encoding);
case "text":
$body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id);
$body = decodeBody($body, $header->encoding);
+ set_up_language(getPref($data_dir, $username, "language"));
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Content-type: application/octet-stream; name=\"$filename\"");
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Content-type: application/octet-stream; name=\"$filename\"");
- set_up_language(getPref($data_dir, $username, "language"));
if ($type1 == "plain") {
echo _("Subject") . ": " . decodeHeader($top_header->subject) . "\n";
echo " " . _("From") . ": " . decodeHeader($top_header->from) . "\n";
if ($type1 == "plain") {
echo _("Subject") . ": " . decodeHeader($top_header->subject) . "\n";
echo " " . _("From") . ": " . decodeHeader($top_header->from) . "\n";
echo trim($body);
break;
default:
echo trim($body);
break;
default:
- header("Content-Disposition: attachment; filename=\"$filename\"");
- header("Content-type: application/octet-stream; name=\"$filename\"");
+ header("Content-Disposition: inline; filename=\"$filename\"");
+ header("Content-type: application/download; name=\"$filename\"");
mime_print_body_lines ($imapConnection, $passed_id, $passed_ent_id, $header->encoding);
break;
}
mime_print_body_lines ($imapConnection, $passed_id, $passed_ent_id, $header->encoding);
break;
}
$body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id);
$body = decodeBody($body, $header->encoding);
header("Content-type: $type0/$type1; name=\"$filename\"");
$body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id);
$body = decodeBody($body, $header->encoding);
header("Content-type: $type0/$type1; name=\"$filename\"");
- header("Content-Disposition: attachment; filename=\"$filename\"");
+ header("Content-Disposition: inline; filename=\"$filename\"");
break;
default:
header("Content-type: $type0/$type1; name=\"$filename\"");
break;
default:
header("Content-type: $type0/$type1; name=\"$filename\"");
- header("Content-Disposition: attachment; filename=\"$filename\"");
+ header("Content-Disposition: inline; filename=\"$filename\"");
mime_print_body_lines ($imapConnection, $passed_id, $passed_ent_id, $header->encoding);
break;
}
mime_print_body_lines ($imapConnection, $passed_id, $passed_ent_id, $header->encoding);
break;
}