<?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>Some mails can&#039;t be displayed</title> 
  <pubDate>Wed, 08 Apr 2026 07:37:08 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10169</link> 
  <atom:link rel="self" type="application/rss+xml" title="Some mails can&#039;t be displayed" href="https://bugs.horde.org/ticket/10169/rss" /> 
  <description>Some mails can&#039;t be displayed</description> 
 
   
   
  <item> 
   <title>Some mails are simply displayed as:
ÿþ

and nothing els</title> 
   <description>Some mails are simply displayed as:
ÿþ

and nothing else (see screenshot). The mails that can&#039;t be displayed doesn&#039;t seem to have much in common: one is base64 encoded:

--&gt;
[...]
Subject: =?utf-8?B?UmU66LK35a625bey5L+u5pS557Wm5oKo55qE5L+h55So6KmV5YO577yaU0QvTWljcm9TRC9NaW5pU0QvTU1DIE1lbW9yeSBDYXJkIFJlYWRlciBVU0IgMi4wIC0gVUvvvIgyNjA3NzEzNjgxOTPvvIk=?=
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9u
[...]
&lt;--

and another one is not:
--&gt;
[...]
Content-Type: multipart/alternative;
	boundary=&quot;----_=_NextPart_001_01CC1B6F.66B13F22&quot;
Subject: SV: SV: Anne og job
[...]

This is a multi-part message in MIME format.

------_=_NextPart_001_01CC1B6F.66B13F22
Content-Type: text/plain;
	charset=&quot;iso-8859-1&quot;
Content-Transfer-Encoding: quoted-printable

Hey min ven!
[...]
&lt;--

Clicking &quot;Text part&quot; will display it in the same way, just in a new window. I can mail the raw mails, but prefer not to upload them here.

Thunderbird displays them fine, and I haven&#039;t experienced the problem before IMP 5.0.4.</description> 
   <pubDate>Wed, 01 Jun 2011 16:57:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65221</link> 
  </item> 
   
  <item> 
   <title>Without examples, there isn&#039;t much we can do. Create a test </title> 
   <description>Without examples, there isn&#039;t much we can do. Create a test mail that produces this behavior, if you don&#039;t want to upload a real message.</description> 
   <pubDate>Thu, 02 Jun 2011 22:09:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65306</link> 
  </item> 
   
  <item> 
   <title>&gt; Without examples, there isn&#039;t much we can do. Create a tes</title> 
   <description>&gt; Without examples, there isn&#039;t much we can do. Create a test mail that 
&gt; produces this behavior, if you don&#039;t want to upload a real message.

Okay, I finally anonymized a mail and stripped it down while preserving the content that triggers the bug in IMP - attached.</description> 
   <pubDate>Tue, 14 Jun 2011 19:26:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65645</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Without examples, there isn&#039;t much we can do. Create a te</title> 
   <description>&gt;&gt; Without examples, there isn&#039;t much we can do. Create a test mail that
&gt;&gt; produces this behavior, if you don&#039;t want to upload a real message.
&gt;
&gt; Okay, I finally anonymized a mail and stripped it down while 
&gt; preserving the content that triggers the bug in IMP - attached.

Renders fine here.

Pursuant to horde/docs/INSTALL:

      Make sure you are using a newer (v2.7 or greater) version of libxml.
      Older versions of libxml are broken when handling certain charsets.</description> 
   <pubDate>Tue, 14 Jun 2011 19:37:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65647</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Without examples, there isn&#039;t much we can do. Create a t</title> 
   <description>&gt;&gt;&gt; Without examples, there isn&#039;t much we can do. Create a test mail that
&gt;&gt;&gt; produces this behavior, if you don&#039;t want to upload a real message.
&gt;&gt;
&gt;&gt; Okay, I finally anonymized a mail and stripped it down while
&gt;&gt; preserving the content that triggers the bug in IMP - attached.
&gt;
&gt; Renders fine here.
&gt;
&gt; Pursuant to horde/docs/INSTALL:
&gt;
&gt;       Make sure you are using a newer (v2.7 or greater) version of libxml.
&gt;       Older versions of libxml are broken when handling certain charsets.

I&#039;m using libxml 2.7.8. I&#039;ll check other related components tomorrow.</description> 
   <pubDate>Tue, 14 Jun 2011 20:09:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65655</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;m using libxml 2.7.8. I&#039;ll check other related component</title> 
   <description>&gt; I&#039;m using libxml 2.7.8. I&#039;ll check other related components tomorrow.

A related issue is that the charset in that HTML part is reported to be &quot;unicode&quot;.  This is not a valid charset (see http://www.iana.org/assignments/character-sets).  I can only guess that libxml does some kind of best-guess as to the current charset if given bad charset input - it&#039;s possible on your system that this best guess is ISO-8859-1, while on my system it is UTF-8, which would explain why it works on some systems but not others.  (You can test and see if this is the case by changing the &#039;unicode&#039; charset definition in the HTML part to &#039;UTF-8&#039;).

However, there is nothing we can do if this is the case.  We can&#039;t change the charset contained within HTML code because we have to parse the HTML first (via the xml functions) - but this parsing code will apply the charset found in a meta charset tag during the parsing itself.</description> 
   <pubDate>Tue, 14 Jun 2011 20:15:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65656</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I&#039;m using libxml 2.7.8. I&#039;ll check other related componen</title> 
   <description>&gt;&gt; I&#039;m using libxml 2.7.8. I&#039;ll check other related components tomorrow.
&gt;
&gt; A related issue is that the charset in that HTML part is reported to 
&gt; be &quot;unicode&quot;.  This is not a valid charset (see 
&gt; http://www.iana.org/assignments/character-sets).  I can only guess 
&gt; that libxml does some kind of best-guess as to the current charset if 
&gt; given bad charset input - it&#039;s possible on your system that this best 
&gt; guess is ISO-8859-1, while on my system it is UTF-8, which would 
&gt; explain why it works on some systems but not others.  (You can test 
&gt; and see if this is the case by changing the &#039;unicode&#039; charset 
&gt; definition in the HTML part to &#039;UTF-8&#039;).
&gt;
&gt; However, there is nothing we can do if this is the case.  We can&#039;t 
&gt; change the charset contained within HTML code because we have to 
&gt; parse the HTML first (via the xml functions) - but this parsing code 
&gt; will apply the charset found in a meta charset tag during the parsing 
&gt; itself.

That&#039;s it - if I change charset from &quot;unicode&quot; to &quot;UTF-8&quot; in the HTML part it renders correctly. Which source file can I look into if I want to investigate why this behaviour is system-dependent? It must be possible to support bad charset definitions, either by configuration of libxml2 or through the API.</description> 
   <pubDate>Wed, 15 Jun 2011 10:20:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65662</link> 
  </item> 
   
  <item> 
   <title>&gt; That&#039;s it - if I change charset from &quot;unicode&quot; to &quot;UTF-8&quot; </title> 
   <description>&gt; That&#039;s it - if I change charset from &quot;unicode&quot; to &quot;UTF-8&quot; in the HTML 
&gt; part it renders correctly. Which source file can I look into if I 
&gt; want to investigate why this behaviour is system-dependent?

I have no clue.  But this is way beyond the scope of Horde/IMP.</description> 
   <pubDate>Wed, 15 Jun 2011 10:27:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t65663</link> 
  </item> 
   
  <item> 
   <title>We have the same bug. Some HTML-Mails become unreadable.
Mo</title> 
   <description>We have the same bug. Some HTML-Mails become unreadable.
More failure tolerance would be nice, because there is no way to read these mails at all.</description> 
   <pubDate>Tue, 16 Oct 2012 15:48:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t73671</link> 
  </item> 
   
  <item> 
   <title>&gt; We have the same bug. Some HTML-Mails become unreadable.
</title> 
   <description>&gt; We have the same bug. Some HTML-Mails become unreadable.
&gt; More failure tolerance would be nice, because there is no way to read 
&gt; these mails at all.

**PLEASE** read comment 6.  There is nothing we can do about this case, when the charset is misidentified within the HTML data, since we can&#039;t parse the HTML data in the first place to replace it.</description> 
   <pubDate>Tue, 16 Oct 2012 17:53:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t73675</link> 
  </item> 
   
  <item> 
   <title>Same issue here, but with charset=&quot;windows-1252&quot;

Content-</title> 
   <description>Same issue here, but with charset=&quot;windows-1252&quot;

Content-Type: text/plain;
 charset=&quot;windows-1252&quot;
Content-Transfer-Encoding: quoted-printable

SOMETEXT=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0
=A0
SOMETEXT
[...]</description> 
   <pubDate>Fri, 13 Apr 2018 09:44:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t92831</link> 
  </item> 
   
  <item> 
   <title>libxml2:amd64                     2.9.4+dfsg1-2.2+deb9u2
im</title> 
   <description>libxml2:amd64                     2.9.4+dfsg1-2.2+deb9u2
imp                        6.2.21  stable
horde                      5.2.17  stable
Debian 9.4</description> 
   <pubDate>Fri, 13 Apr 2018 09:47:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t92832</link> 
  </item> 
   
  <item> 
   <title>There is no point in adding comments to bugs that have alrea</title> 
   <description>There is no point in adding comments to bugs that have already been closed. Besides this, if you read the earlier comments, you&#039;ll find that the problem cannot be fixed by Horde.</description> 
   <pubDate>Fri, 13 Apr 2018 09:51:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10169#t92833</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
