From 3803fc8d9845990819eefdcfd6c46c31658aa1b3 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 10 Mar 2006 02:51:15 +0000 Subject: printing messages now follows 'Show all headers'. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1038 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmsg.c | 9 +++++++-- libsylph/procmsg.h | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'libsylph') diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c index 00a3b9c9..3a47da3d 100644 --- a/libsylph/procmsg.c +++ b/libsylph/procmsg.c @@ -1280,7 +1280,8 @@ gint procmsg_save_to_outbox(FolderItem *outbox, const gchar *file) return 0; } -void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline) +void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline, + gboolean all_headers) { static const gchar *def_cmd = "lpr %s"; static guint id = 0; @@ -1315,7 +1316,11 @@ void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline) return; } - headers = procheader_get_header_array_for_display(msgfp, NULL); + if (all_headers) + headers = procheader_get_header_array_asis(msgfp, NULL); + else + headers = procheader_get_header_array_for_display(msgfp, NULL); + fclose(msgfp); for (i = 0; i < headers->len; i++) { diff --git a/libsylph/procmsg.h b/libsylph/procmsg.h index 19de310e..f61b6f9b 100644 --- a/libsylph/procmsg.h +++ b/libsylph/procmsg.h @@ -297,7 +297,8 @@ void procmsg_remove_all_cached_messages gint procmsg_save_to_outbox (FolderItem *outbox, const gchar *file); void procmsg_print_message (MsgInfo *msginfo, - const gchar *cmdline); + const gchar *cmdline, + gboolean all_headers); MsgInfo *procmsg_msginfo_copy (MsgInfo *msginfo); MsgInfo *procmsg_msginfo_get_full_info (MsgInfo *msginfo); -- cgit v1.2.3