--- org/imp.lib Mon Jul 23 10:28:03 2001 +++ kazu/imp.lib Mon Jul 23 10:28:47 2001 @@ -287,6 +287,11 @@ /* Function to decode a MIME-encoded string, returns the original string, if not MIME */ function decode_mime_string ($string) { global $default, $i18n_func; + + ## iwama@ymc.ne.jp --> + $string = i18n_convert_internal($string); + ## <-- iwama@ymc.ne.jp + $pos = strpos($string, '=?'); if (!is_int($pos)) { return $string; @@ -297,7 +302,11 @@ $preceding = substr($string, 0, $pos); // save any preceding text - $search = substr($string, $pos+2, 75); // the mime header spec says this is the longest a single encoded word can be + ## iwama@ymc.ne.jp --> + # $search = substr($string, $pos+2, 75); // the mime header spec says this is the longest a single encoded word can be + $search = substr($string, $pos+2); + ## <-- iwama@ymc.ne.jp + $d1 = strpos($search, '?'); if (!is_int($d1)) { return $string;