aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-07-23 11:49:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-07-23 11:49:22 +0800
commitad44453de22ab60267ddb33f8578d0840e57e228 (patch)
tree469001be765b60ff8720cb0984abfaabce3b50db /mail/em-utils.c
parentb06ecefc61581d7048df8b9bcd06896b75a459d0 (diff)
downloadgsoc2013-evolution-ad44453de22ab60267ddb33f8578d0840e57e228.tar.gz
gsoc2013-evolution-ad44453de22ab60267ddb33f8578d0840e57e228.tar.zst
gsoc2013-evolution-ad44453de22ab60267ddb33f8578d0840e57e228.zip
set the session on the formatter. See #61767.
2004-07-22 Not Zed <NotZed@Ximian.com> * em-utils.c (em_utils_part_to_html, em_utils_message_to_html): set the session on the formatter. See #61767. 2004-07-22 Not Zed <NotZed@Ximian.com> ** See bug #61747. * message-list.c (search_func): don't emit a message_selected here (god knows why we did?). Don't update cursor_uid either, just clear it. (message_list_select): select the path if we find it here, causing the cascade of selection action. svn path=/trunk/; revision=26710
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 1c9bcbdce6..1fea720579 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -66,6 +66,8 @@
static void emu_save_part_done (CamelMimePart *part, char *name, int done, void *data);
+extern struct _CamelSession *session;
+
#define d(x)
/**
@@ -1375,6 +1377,7 @@ em_utils_part_to_html(CamelMimePart *part)
camel_stream_mem_set_byte_array (mem, buf);
emfq = em_format_quote_new(NULL, (CamelStream *)mem, 0);
+ em_format_set_session((EMFormat *)emfq, session);
em_format_part((EMFormat *) emfq, (CamelStream *) mem, part);
g_object_unref (emfq);
@@ -1411,6 +1414,7 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32
camel_stream_mem_set_byte_array (mem, buf);
emfq = em_format_quote_new(credits, (CamelStream *)mem, flags);
+ em_format_set_session((EMFormat *)emfq, session);
em_format_format((EMFormat *)emfq, NULL, NULL, message);
g_object_unref (emfq);
@@ -1520,8 +1524,6 @@ em_utils_folder_name_from_uri (const char *uri)
return folder_name;
}
-extern struct _CamelSession *session;
-
/* email: uri's are based on the account, with special cases for local
* stores, vfolder and local mail.
* e.g.