aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-format-html-print.c14
-rw-r--r--mail/em-format-html-print.h1
3 files changed, 20 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 194e93db68..5969c33f1c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2005-05-19 Not Zed <NotZed@Ximian.com>
+ * em-format-html-print.c (em_format_html_print_raw_message): new
+ function to print a non-foldered message. untested.
+
+2005-05-19 Not Zed <NotZed@Ximian.com>
+
* em-folder-utils.h: fix rodney's name choices. fix
multiple-inclusion. fix forward references. fix all callers.
add many fixme's for the busted api's.
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 */
diff --git a/mail/em-format-html-print.h b/mail/em-format-html-print.h
index 788a420dbe..a7c1a4eb13 100644
--- a/mail/em-format-html-print.h
+++ b/mail/em-format-html-print.h
@@ -35,5 +35,6 @@ EMFormatHTMLPrint *em_format_html_print_new(void);
int em_format_html_print_print(EMFormatHTMLPrint *efhp, EMFormatHTML *source, struct _GnomePrintConfig *print_config, int preview);
int em_format_html_print_message(EMFormatHTMLPrint *efhp, EMFormatHTML *source, struct _GnomePrintConfig *print_config, struct _CamelFolder *folder, const char *uid, int preview);
+int em_format_html_print_raw_message(EMFormatHTMLPrint *efhp, struct _GnomePrintConfig *print_config, struct _CamelMimeMessage *msg, int preview);
#endif /* ! _EM_FORMAT_HTML_PRINT_H */