From 11b0f20681a5d8fe4aaec622e3833b1ff1088b58 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 19 May 2005 06:46:23 +0000 Subject: new function to print a non-foldered message. untested. 2005-05-19 Not Zed * em-format-html-print.c (em_format_html_print_raw_message): new function to print a non-foldered message. untested. svn path=/trunk/; revision=29385 --- mail/em-format-html-print.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mail/em-format-html-print.c') diff --git a/mail/em-format-html-print.c b/mail/em-format-html-print.c index 6b252064a0..df12ddf856 100644 --- a/mail/em-format-html-print.c +++ b/mail/em-format-html-print.c @@ -233,6 +233,20 @@ int em_format_html_print_message(EMFormatHTMLPrint *efhp, EMFormatHTML *source, return 0; /* damn async ... */ } +int em_format_html_print_raw_message(EMFormatHTMLPrint *efhp, struct _GnomePrintConfig *print_config, struct _CamelMimeMessage *msg, int preview) +{ + efhp->config = print_config; + if (print_config) + g_object_ref(print_config); + efhp->source = NULL; + efhp->preview = preview; + g_object_ref(efhp); + + emfhp_got_message(NULL, NULL, msg, efhp); + + return 0; +} + /* ********************************************************************** */ /* if only ... but i doubt this is possible with gnome print/gtkhtml */ -- cgit v1.2.3