6.0.0-beta1
7/7/25

[#8048] Javascript error with Internet Explorer 7 and 8-bit chars in mail headers
Summary Javascript error with Internet Explorer 7 and 8-bit chars in mail headers
Queue DIMP
Queue Version 1.1
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester frederic.jacquot (at) insa-lyon (dot) fr
Created 03/05/2009 (5968 days ago)
Due
Updated 03/11/2009 (5962 days ago)
Assigned 03/09/2009 (5964 days ago)
Resolved 03/09/2009 (5964 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/11/2009 09:34:05 AM frederic (dot) jacquot (at) insa-lyon (dot) fr Comment #8 Reply to this comment
Actually, dimp/docs/INSTALL states :
"The following items are not required, but are strongly **RECOMMENDED**"
Exactly.  Because with PHP > 5.2.5, "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."
So not required, but recommended to view things such as, for example,
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.
03/10/2009 06:31:10 PM Michael Slusarz Comment #7 Reply to this comment
with PHP > 5.2.5
Should read "with PHP < (less than) 5.2.5".
03/10/2009 06:29:14 PM Michael Slusarz Comment #6 Reply to this comment
Actually, dimp/docs/INSTALL states :
"The following items are not required, but are strongly **RECOMMENDED**"
Exactly.  Because with PHP > 5.2.5, "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."  So not 
required, but recommended to view things such as, for example, broken 
messages.
03/10/2009 09:07:44 AM frederic (dot) jacquot (at) insa-lyon (dot) fr Comment #5 Reply to this comment
I'm running PHP Version 5.2.4-2ubuntu5.5
As dimp/docs/INSTALL states, you need PHP 5.2.5+.
Actually, dimp/docs/INSTALL states :

"The following items are not required, but are strongly **RECOMMENDED**"
03/09/2009 08:45:17 PM Michael Slusarz Comment #4
State ⇒ Not A Bug
Reply to this comment
I'm running PHP Version 5.2.4-2ubuntu5.5
As dimp/docs/INSTALL states, you need PHP 5.2.5+.
03/09/2009 09:16:26 AM frederic (dot) jacquot (at) insa-lyon (dot) fr Comment #3 Reply to this comment
I don'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?
I'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
03/09/2009 12:35:49 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
I don'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?
03/05/2009 09:57:56 AM frederic (dot) jacquot (at) insa-lyon (dot) fr Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Javascript error with Internet Explorer 7 and 8-bit chars in mail headers
Queue ⇒ DIMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi !



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

" onException: TypeError-'this.element' is Null or not an object "



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



The message contains 8-bit data in the "From:" line :

   From: Gérard XXX<xxx.xxx@gmail.com>

An Amavis header underlines the problem :

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



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.

Saved Queries