Look for DOCTYPE XML comments too to decide if the message content is

2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (handle_text_plain): Look for DOCTYPE XML comments
	too to decide if the message content is really HTML.

svn path=/trunk/; revision=15581
This commit is contained in:
Jeffrey Stedfast
2002-02-06 19:52:08 +00:00
committed by Jeffrey Stedfast
parent 33f7597222
commit 411fd545df
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-02-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): Look for DOCTYPE XML comments
too to decide if the message content is really HTML.
2002-02-06 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (mail_generate_reply): Dont double-free the

View File

@ -1195,7 +1195,7 @@ handle_text_plain (CamelMimePart *part, const char *mime_type,
start = text;
while (isspace ((unsigned) *start))
start++;
if (!g_strncasecmp (start, "<html>", 6)) {
if (!g_strncasecmp (start, "<html>", 6) || !g_strncasecmp (start, "<!DOCTYPE HTML", 14)) {
g_free (text);
return handle_text_html (part, "text/html", md, html, stream);
}

View File

@ -12,7 +12,7 @@
<ETableColumn model_col= "9" _title="Size" expansion="0.2" minimum_width="32" resizable="true" cell="render_size" compare="integer"/>
<ETableColumn model_col="10" _title="Needs Reply" pixbuf="needsreply" expansion="0.0" minimum_width="18" resizable="false" cell="render_needs_reply" compare="integer" sortable="false"/>
<ETableState>
<column source="0"/> <column source="10"/> <column source="3"/> <column source="1"/>
<column source="0"/> <column source="3"/> <column source="1"/>
<column source="4"/> <column source="5" expansion="1.60"/> <column source="6" expansion="0.40"/>
<grouping> </grouping>
</ETableState>