aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-05-19 14:46:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-05-19 14:46:23 +0800
commit11b0f20681a5d8fe4aaec622e3833b1ff1088b58 (patch)
treee5b37871f00dae69acc2a5e9a0d969d25f4ca17b /mail
parent1907cf0faa1b82a8e1bddf263f9b434f7009ac9c (diff)
downloadgsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar.gz
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar.bz2
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar.lz
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar.xz
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.tar.zst
gsoc2013-evolution-11b0f20681a5d8fe4aaec622e3833b1ff1088b58.zip
new function to print a non-foldered message. untested.
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. svn path=/trunk/; revision=29385
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 */