[bugs] [Bug 1289] New - enhancement to better display email using a different charset

bugs at bugs.horde.org bugs at bugs.horde.org
Sat Jun 21 04:07:49 PDT 2003


http://bugs.horde.org/show_bug.cgi?id=1289

*** shadow/1289	Sat Jun 21 08:07:49 2003
--- shadow/1289.tmp.29664	Sat Jun 21 08:07:49 2003
***************
*** 0 ****
--- 1,44 ----
+ Bug#: 1289
+ Product: Horde
+ Version: 2.2 Stable
+ Platform: PHP Code
+ OS/Version: Linux
+ Status: NEW   
+ Resolution: 
+ Severity: enhancement
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org                            
+ ReportedBy: jean-christophe.andre at auf.org               
+ URL: 
+ Cc: jean-christophe.andre at auf.org
+ Summary: enhancement to better display email using a different charset
+ 
+ I'm using French, so ISO-8859-1 is my default charset.
+ I sometime receive emails from Japan, but not in japanese language;
+ unfortunately, their encoding is still ISO-2022-JP.
+ I'm pretty sure this kind of situation is not so uncommon.
+ 
+ I propose the following enhancement to allow user to have a better
+ display of email using a different charset than theirs:
+ 
+ --- imp-3.2.1/lib/MIME/Viewer/text.php  Fri Jan  3 20:23:14 2003
+ +++ imp/lib/MIME/Viewer/text.php        Sat Jun 21 17:53:15 2003
+ @@ -106,6 +106,9 @@
+              !strstr($_SERVER['PHP_SELF'], 'view.php')) {
+              include_once HORDE_BASE . '/lib/SessionCache.php';
+ 
+ +           if (function_exists('iconv')) {
+ +               $text = iconv($mime->charset, $GLOBALS['registry']->getCharset
+ ()."//TRANSLIT", $text);
+ +            }
+              $text = sprintf(_("<p><i>This message was written in a character 
+ set other than your own. If it is not displayed correctly, %sclick here</a> to 
+ open it in a new window.</i></p>\n"),
+                              Horde::link('', sprintf(_("View %s"), $mime-
+ >description), null, null, "view('" . VIEW_ATTACH . "', '" . $mime-
+ >imap_id . "', '" . SessionCache::putObject($mime) . "'); return false;")) . 
+ $text;
+          }
+ 


More information about the bugs mailing list