simplified raw view
svn path=/trunk/; revision=17938
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
2002-08-30 Radek Doulik <rodo@ximian.com>
|
||||
|
||||
* mail-display.c (mail_display_render): don't set margins for raw
|
||||
message view
|
||||
|
||||
* mail-format.c (mail_format_raw_message): as below
|
||||
(handle_text_plain_flowed): as below
|
||||
(mail_format_raw_message): don't use data_urls
|
||||
|
||||
* mail-display.c (mail_text_write): put text in iframe, so it has
|
||||
margins and should not be placed in table which changes wrapping
|
||||
|
||||
@ -1700,7 +1700,10 @@ mail_display_render (MailDisplay *md, GtkHTML *html, gboolean reset_scroll)
|
||||
"<!doctype html public \"-//W3C//DTD HTML 4.0 TRANSITIONAL//EN\">\n"
|
||||
"<html>\n"
|
||||
"<head>\n<meta name=\"generator\" content=\"Evolution Mail Component\">\n</head>\n");
|
||||
mail_html_write (html, stream, "<body marginwidth=0 marginheight=0>\n");
|
||||
if (md->current_message && md->display_style == MAIL_CONFIG_DISPLAY_SOURCE)
|
||||
mail_html_write (html, stream, "<body>\n");
|
||||
else
|
||||
mail_html_write (html, stream, "<body marginwidth=0 marginheight=0>\n");
|
||||
|
||||
flag = md->info ? camel_tag_get (&md->info->user_tags, "follow-up") : NULL;
|
||||
completed = md->info ? camel_tag_get (&md->info->user_tags, "completed-on") : NULL;
|
||||
|
||||
@ -202,27 +202,14 @@ mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md,
|
||||
|
||||
bytes = mail_format_get_data_wrapper_text (CAMEL_DATA_WRAPPER (mime_message), md);
|
||||
if (bytes) {
|
||||
GByteArray *ba;
|
||||
gchar *xed, *iframe;
|
||||
gchar *btt = "<tt>\n";
|
||||
gchar *ett = "</tt>\n";
|
||||
|
||||
g_byte_array_append (bytes, "", 1);
|
||||
html_str = e_text_to_html (bytes->data, E_TEXT_TO_HTML_CONVERT_NL |
|
||||
E_TEXT_TO_HTML_CONVERT_SPACES | E_TEXT_TO_HTML_ESCAPE_8BIT);
|
||||
g_byte_array_free (bytes, TRUE);
|
||||
|
||||
ba = g_byte_array_new ();
|
||||
g_byte_array_append (ba, (const guint8 *) btt, strlen (btt) + 1);
|
||||
g_byte_array_append (ba, (const guint8 *) html_str, strlen (html_str) + 1);
|
||||
g_byte_array_append (ba, (const guint8 *) ett, strlen (ett) + 1);
|
||||
mail_html_write (html, stream, "<tt>");
|
||||
mail_html_write (html, stream, html_str);
|
||||
g_free (html_str);
|
||||
|
||||
xed = g_strdup_printf ("x-evolution-data:%p", mime_message);
|
||||
iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", xed, xed);
|
||||
mail_display_add_url (md, "data_urls", xed, ba);
|
||||
mail_html_write (html, stream, iframe);
|
||||
g_free (iframe);
|
||||
mail_html_write (html, stream, "</tt>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user