diff options
author | Dan Winship <danw@src.gnome.org> | 2001-04-19 21:25:21 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-04-19 21:25:21 +0800 |
commit | f01019286633b42afb08fa4449e16c4ca0aba848 (patch) | |
tree | 88fbd02b8750a4ecfb58776b99b6af9fa8d679ad | |
parent | 800d2e803a9c4cce9ba241bbfa366ee90eb78af3 (diff) | |
download | gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar.gz gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar.bz2 gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar.lz gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar.xz gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.tar.zst gsoc2013-evolution-f01019286633b42afb08fa4449e16c4ca0aba848.zip |
Make this more raw: don't do URLs and citations.
* mail-format.c (mail_format_raw_message): Make this more raw:
don't do URLs and citations.
svn path=/trunk/; revision=9457
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-format.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 05ff8de138..42c302cdd7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-04-19 Dan Winship <danw@ximian.com> + + * mail-format.c (mail_format_raw_message): Make this more raw: + don't do URLs and citations. + 2001-04-18 Dan Winship <danw@ximian.com> * session.c (request_callback): Don't need to dup the string: the diff --git a/mail/mail-format.c b/mail/mail-format.c index 3af17025de..5f04ecb231 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -170,12 +170,16 @@ mail_format_mime_message (CamelMimeMessage *mime_message, MailDisplay *md) void mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md) { - gchar *text; - + char *text, *html; + g_return_if_fail (CAMEL_IS_MIME_MESSAGE (mime_message)); text = get_data_wrapper_text (CAMEL_DATA_WRAPPER (mime_message)); - mail_text_write (md->html, md->stream, "%s", text ? text : ""); + html = e_text_to_html (text, E_TEXT_TO_HTML_CONVERT_NL | E_TEXT_TO_HTML_CONVERT_SPACES); + gtk_html_write (md->html, md->stream, "<tt>", 4); + gtk_html_write (md->html, md->stream, html, strlen (html)); + gtk_html_write (md->html, md->stream, "</tt>", 5); + g_free (html); g_free (text); } |