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/procmsg.c | |
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/procmsg.c')
-rw-r--r-- | libsylph/procmsg.c | 9 |
1 files changed, 7 insertions, 2 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++) { |