aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2001-03-21 00:50:43 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-03-21 00:50:43 +0800
commit5b140dc1c18fa12b56438bd1045bf2960602b022 (patch)
tree3581ca9c002456b50c49714570ddd1937fb9e9a3 /mail/mail-tools.c
parent3e105b5bb73b88a597ca56c14319644e4ca4c1ea (diff)
downloadgsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.gz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.bz2
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.lz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.xz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.zst
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.zip
set color in html citation
2001-03-20 Radek Doulik <rodo@ximian.com> * mail-tools.c (mail_tool_quote_message): set color in html citation * mail-config.c: added citation highlighting configuration * mail-tools.c (mail_tool_quote_message): use citation highlighting * mail-display.c (mail_text_write): use citation highlighting svn path=/trunk/; revision=8848
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 48a0bd94e8..9f78e100b9 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -307,15 +307,12 @@ mail_tool_quote_message (CamelMimeMessage *message, const char *fmt, ...)
}
if (is_html) {
- if (credits) {
- ret_text = g_strdup_printf ("<blockquote><i>\n%s\n%s\n"
- "</i></blockquote>\n",
- credits, text);
- } else {
- ret_text = g_strdup_printf ("<blockquote><i>\n%s\n"
- "</i></blockquote>\n",
- text);
- }
+ ret_text = g_strdup_printf ("<blockquote><i><font color=\"%06x\">\n%s%s%s\n"
+ "</font></i></blockquote>\n",
+ mail_config_get_citation_color (),
+ credits ? credits : "",
+ credits ? "\n" : "",
+ text);
} else {
gchar *s, *d, *quoted_text;
gint lines, len, offset = 0;
@@ -360,7 +357,10 @@ mail_tool_quote_message (CamelMimeMessage *message, const char *fmt, ...)
*d = '\0';
/* Now convert that to HTML. */
- ret_text = e_text_to_html (quoted_text, E_TEXT_TO_HTML_PRE);
+ ret_text = e_text_to_html_full (quoted_text, E_TEXT_TO_HTML_PRE
+ | (mail_config_get_citation_highlight ()
+ ? E_TEXT_TO_HTML_MARK_CITATION : 0),
+ mail_config_get_citation_color ());
g_free (quoted_text);
}