aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-format-html-print.c')
-rw-r--r--mail/em-format-html-print.c14
1 files changed, 14 insertions, 0 deletions
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 */