<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Javascript error with Internet Explorer 7 and 8-bit chars in mail headers</title> 
  <pubDate>Fri, 10 Apr 2026 10:04:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8048</link> 
  <atom:link rel="self" type="application/rss+xml" title="Javascript error with Internet Explorer 7 and 8-bit chars in mail headers" href="https://bugs.horde.org/ticket/8048/rss" /> 
  <description>Javascript error with Internet Explorer 7 and 8-bit chars in mail headers</description> 
 
   
   
  <item> 
   <title>Hi !



I get the following Javascript error (with js debug </title> 
   <description>Hi !



I get the following Javascript error (with js debug enabled) when I open a mailbox which contains a message with incorrect headers :

&quot; onException: TypeError-&#039;this.element&#039; is Null or not an object &quot;



Everything works fine with Firefox or with IMP (both with IE7 and Firefox).



The message contains 8-bit data in the &quot;From:&quot; line :

  From: GÃ©rard XXX&lt;xxx.xxx@gmail.com&gt;

An Amavis header underlines the problem :

  &quot;X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char E9 hex)&quot;



If Javascript debugging is disabled in Dimp, the message listing stops at the concerned message ; ie the user thinks some messages disappeared from his mailbox.</description> 
   <pubDate>Thu, 05 Mar 2009 09:57:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t52889</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t have the ticket number handy, but this sounds a lot </title> 
   <description>I don&#039;t have the ticket number handy, but this sounds a lot like previous problems with json encoding - are you sure you have mbstring/iconv working, and a recent PHP 5.2.x?</description> 
   <pubDate>Mon, 09 Mar 2009 00:35:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t52942</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t have the ticket number handy, but this sounds a lo</title> 
   <description>&gt; I don&#039;t have the ticket number handy, but this sounds a lot like 

&gt; previous problems with json encoding - are you sure you have 

&gt; mbstring/iconv working, and a recent PHP 5.2.x?



I&#039;m running PHP Version 5.2.4-2ubuntu5.5



mbstring and iconv are enabled :



  iconv support 	enabled

  iconv implementation 	glibc

  iconv library version 	2.7

  iconv.input_encoding	ISO-8859-1	ISO-8859-1

  iconv.internal_encoding	ISO-8859-1	ISO-8859-1

  iconv.output_encoding	ISO-8859-1	ISO-8859-1



  Multibyte Support 	enabled

  Multibyte string engine 	libmbfl

  Multibyte (japanese) regex support 	enabled

  Multibyte regex (oniguruma) version 	4.4.4

  Multibyte regex (oniguruma) backtrack check 	On </description> 
   <pubDate>Mon, 09 Mar 2009 09:16:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t52962</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;m running PHP Version 5.2.4-2ubuntu5.5



As dimp/docs/I</title> 
   <description>&gt; I&#039;m running PHP Version 5.2.4-2ubuntu5.5



As dimp/docs/INSTALL states, you need PHP 5.2.5+.</description> 
   <pubDate>Mon, 09 Mar 2009 20:45:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t52977</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I&#039;m running PHP Version 5.2.4-2ubuntu5.5

&gt;

&gt; As dimp/do</title> 
   <description>&gt;&gt; I&#039;m running PHP Version 5.2.4-2ubuntu5.5

&gt;

&gt; As dimp/docs/INSTALL states, you need PHP 5.2.5+.



Actually, dimp/docs/INSTALL states :

&quot;The following items are not required, but are strongly **RECOMMENDED**&quot;</description> 
   <pubDate>Tue, 10 Mar 2009 09:07:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t52997</link> 
  </item> 
   
  <item> 
   <title>&gt; Actually, dimp/docs/INSTALL states :

&gt; &quot;The following ite</title> 
   <description>&gt; Actually, dimp/docs/INSTALL states :

&gt; &quot;The following items are not required, but are strongly **RECOMMENDED**&quot;



Exactly.  Because with PHP &gt; 5.2.5, &quot;Using older versions of the JSON encoder may result in the JSON output to the browser being prematurely terminated, resulting in incomplete or blank screens.&quot;  So not required, but recommended to view things such as, for example, broken messages.</description> 
   <pubDate>Tue, 10 Mar 2009 18:29:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t53011</link> 
  </item> 
   
  <item> 
   <title>&gt; with PHP &gt; 5.2.5



Should read &quot;with PHP &lt; (less than) 5.</title> 
   <description>&gt; with PHP &gt; 5.2.5



Should read &quot;with PHP &lt; (less than) 5.2.5&quot;.</description> 
   <pubDate>Tue, 10 Mar 2009 18:31:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t53012</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Actually, dimp/docs/INSTALL states :

&gt;&gt; &quot;The following i</title> 
   <description>&gt;&gt; Actually, dimp/docs/INSTALL states :

&gt;&gt; &quot;The following items are not required, but are strongly **RECOMMENDED**&quot;

&gt;

&gt; Exactly.  Because with PHP &gt; 5.2.5, &quot;Using older versions of the JSON 

&gt; encoder may result in the JSON output to the browser being 

&gt; prematurely terminated, resulting in incomplete or blank screens.&quot;  

&gt; So not required, but recommended to view things such as, for example, 

&gt; broken messages.



I understand your point, but another consequence of this bug is that the folder parsing is simply stopped when a broken messages is found, resulting in an incomplete message list.</description> 
   <pubDate>Wed, 11 Mar 2009 09:34:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8048#t53025</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
