diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-10 02:51:15 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-10 02:51:15 +0000 |
commit | 3803fc8d9845990819eefdcfd6c46c31658aa1b3 (patch) | |
tree | 285876dc6d94151e5b3bdfb86972fad5cd9ccff3 /libsylph | |
parent | a8dd8ec8af07826434cf28bca75b5261528f806d (diff) |
printing messages now follows 'Show all headers'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1038 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/procmsg.c | 9 | ||||
-rw-r--r-- | libsylph/procmsg.h | 3 |
2 files changed, 9 insertions, 3 deletions
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); |