Sam Varshavchik wrote:
Brad writes:

Would I be correct in saying that sqwebmail obeys the "doctype" field to decide whether or not to render a particular e-mail as html, and that is a doctype is not specified, it will be rendered as text, even if an


No, it would not be correct.

MIME text/html content is rendered as HTML. MIME text/plain content is rendered as plain text.


That's not what I'm seeing. I recieved the following from a user, complaining that the e-mail was not rendered in HTML. It has Content-Type: text/html in the header, and is rendered as plain text. For the sake of brevity, I'm only pasting the top part, as the e-mail is around 50kb. After this is an e-mail that has a doctype tag outside of the headers, and is rendered in html properly.


Is there some configuration somewhere that I need to change?

----------Forwarded message ----------
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Date: Fri, 7 Mar 2003 06:02:53 -0800 (PST)
From: ZDNet Tech Update Today <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: My recurring PDA upgrade nightmare [TECH UPDATE]
Mime-Version: 1.0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Mailer: Accucast (http://www.accucast.com)
X-Mailer-Version: 2.8.6-4


<html>
<head>
<title>Tech Update Today</title>
<link rel="stylesheet" type="text/css" href="http://a.r.tv.com/cnet.1d/css/all.css"; />
<link rel="stylesheet" type="text/css" href="http://a.r.tv.com/cnet.1d/css/ie.css"; />
<link rel="stylesheet" type="text/css" href="http://a.r.tv.com/cnet.1d/css/1.css"; />


<link rel="stylesheet" type="text/css" href="http://home.cnet.com/css/all.css"; />
<link rel="stylesheet" type="text/css" href="http://home.cnet.com/css/ie.css"; />
<link rel="stylesheet" type="text/css" href="http://home.cnet.com/css/92.css"; />
</head>
<body style="margin:8px 9px 9px 12px" bgcolor="#ffffff" background="http://techupdate.zdnet.com/techupdate/i/bg_232850.gif"; link="#003399" alink="#cc0000" vlink="#666699">
<div align="center">
<!-- main -->
<a name="top"></a>
<table width="612" bgcolor="#232850" cellpadding=0 cellspacing=0 border=0>
<tr valign=bottom>
<td width="440" colspan="4"><a href="http://cl.com.com/Click?q=99-4mfyQAd28I485BWvuNW187FbpLtN"; ><img src="http://techupdate.cnet.com/i/itu/nl/header_new.gif"; width="440" height="60" border="0" alt="Tech Update Today"></a></td>
<td width=160 align=center valign=top rowspan=2 bgcolor="#ffffff">


----------------------------------

However, the following DOES render in HTML properly:

----------Forwarded message ----------
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Date: Mon, 10 Mar 2003 09:47:21 -0500
From: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a; MultiZilla v1.3.1 (a)) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Test 2l;ksajdf;ljsdf
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
l;asdljkj<br>
sadlfkj<br>
vlkasj<br>
<br>
<h2><u><b>FOOO!!!!</b></u></h2>
<br>
sadf;kasl;df<br>
;sadflksahv<br>
lhsa'lkvsl'hv<br>
<br>
</body>
</html>



Reply via email to