From ad44453de22ab60267ddb33f8578d0840e57e228 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 23 Jul 2004 03:49:22 +0000 Subject: set the session on the formatter. See #61767. 2004-07-22 Not Zed * 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 ** 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 --- mail/em-utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mail/em-utils.c') 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. -- cgit v1.2.3