1/ If you have email with international filename attached and try to forward it, its name in compose screen will be crippled. Patch iloha-compose_fetch_ref-int_filename.patch correct this.
2/ I reported this once before, but nobody respond and I think this need testing. If you have file with wedges and your national characters in name, it will be downloaded with bad filename under internet explorer, many times also with bad filetype. Patch iloha-view-int_filename.patch correct this. Both of these patches need testing, I hope that there are some non english users :) which can give me some feedback. Ryo, can I submit this and others which I'll sent today to cvs after testing? -- .''`. Ondra 'Kepi' Kudlik : :' : Debian GNU/Linux User `. `' `- http://www.nosoftwarepatents.com/cz/m/intro/index.html
diff -Naur include/compose_fetch_ref.inc
/domains/igloonet.com/web/www/ilohatest/include/compose_fetch_ref.inc
--- include/compose_fetch_ref.inc 2005-02-25 00:21:57.000000000 +0100
+++ /domains/igloonet.com/web/www/ilohatest/include/compose_fetch_ref.inc
2005-10-26 21:49:53.000000000 +0200
@@ -124,7 +124,7 @@
or
(strcasecmp($att_list[$i]["disposition"], "attachment")==0)
or (!empty($att_list[$i]["name"]))){
$file =
"fwd-".mod_base64_encode($folder)."-$id-".mod_base64_encode($i);
- $file .=
".".mod_base64_encode($att_list[$i]["name"]);
+ $file .=
".".mod_base64_encode(LangDecodeSubject($att_list[$i]["name"],$my_charset));
$file .=
".".mod_base64_encode($att_list[$i]["typestring"]);
$file .=
".".mod_base64_encode($att_list[$i]["size"]);
if (!$fwd_att_list[$file]){
--- view.php 2005-10-07 01:43:54.000000000 +0200
+++ view.php.new 2005-10-07 01:44:08.000000000 +0200
@@ -212,20 +212,22 @@
}
}
+ // get correct file name
+ include("../lang/".$my_prefs["charset"].".inc");
+ $name = str_replace("/",".",iml_GetPartName($structure,
$part));
+ $name = LangDecodeSubject($name,$my_charset);
+
// format and send HTTP header
if ($type==$MIME_APPLICATION){
- $name =
str_replace("/",".",iml_GetPartName($structure, $part));
header("Content-type: $typestr;
name=\"".$name."\"");
header("Content-Disposition:
".$DISPOSITION_MODE."; filename=\"".$name."\"");
header("Expires: 0");
header("Cache-Control: must-revalidate,
post-check=0, pre-check=0");
header("Pragma: public");
}else if ($type==$MIME_MESSAGE){
- $name=str_replace("/",".",
iml_GetPartName($structure, $part));
header("Content-Type: text/plain;
name=\"".$name."\"");
}else if ($type != $MIME_INVALID){
$charset=iml_GetPartCharset($structure, $part);
- $name=str_replace("/",".",
iml_GetPartName($structure, $part));
$header="Content-type: $typestr";
if (!empty($charset)) $header.=";
charset=\"".$charset."\"";
if (!empty($name)) $header.=";
name=\"".$name."\"";
signature.asc
Description: Digital signature
