[imp] problem with displaying html-encoded email

Michael M Slusarz slusarz at horde.org
Fri Mar 3 08:37:36 PST 2006


Quoting Yuzhe He <dundo4he at yahoo.com>:

> The following is the email. imp can't display the
> text/html part. It doesn't show the text/html part,
> either. Is there anything that can make imp display
> html-coded email correctly? I really need help. Thank
> you.
>
> MIME-Version: 1.0
> Content-Type: multipart/alternative;
>         boundary="b1_96665e2e7fd4469794a093f7b377da85"
>
> --b1_96665e2e7fd4469794a093f7b377da85
> Content-Type: text/plain; charset = "iso-8859-1"
> Content-Transfer-Encoding: 8bit
>
> This is <a href="http://www.ibm.com">click here for
> ibm</a> the text
> -only body of Confirmation
>
>
> --b1_96665e2e7fd4469794a093f7b377da85
> Content-Type: text/html; charset = "iso-8859-1"
> Content-Transfer-Encoding: 8bit
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859
> -1" />
> <title>test</title>
> </head>
>
> <body>
> <div><a href="http://www.ibm.com">click here for
> ibm</a></div>
> </body>
> </html>
>
>
> --b1_96665e2e7fd4469794a093f7b377da85--

First off - that's a broken message.  Content-Transfer-Encoding = 8bit  
is incorrect per RFCs.

Second, this is a multipart/alternative part.  We only have to show  
the most feature-rich part that we can.  If you have html display  
turned off in mime_drivers.php, then the plaintext part will be shown.

As of 4.1, IMP by default does not display other alternatives for a  
multipart/alternative part.  If you would like IMP to list the other  
parts, then enable the preference that does just this.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]


More information about the imp mailing list