aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-show.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2012-09-10 08:35:30 +0200
committerDavid Bremner <bremner@debian.org>2012-10-22 20:06:21 -0300
commitffb629cc5d2c2d1505eb5aefcf04fb4d0af6c0c8 (patch)
treefcd314038b446653314986992c531aa9e7b512a2 /notmuch-show.c
parent0d552ab6d0d9f7783d5f3cd0a246243c91090d49 (diff)
notmuch-show: include Bcc header in json output
With this change, emacs users can use notmuch-message-headers variable to configure notmuch-show display Bcc header.
Diffstat (limited to 'notmuch-show.c')
-rw-r--r--notmuch-show.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/notmuch-show.c b/notmuch-show.c
index 35562934..0b7abf16 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -233,6 +233,13 @@ format_headers_json (sprinter_t *sp, GMimeMessage *message,
sp->string (sp, recipients_string);
}
+ recipients = g_mime_message_get_recipients (message, GMIME_RECIPIENT_TYPE_BCC);
+ recipients_string = internet_address_list_to_string (recipients, 0);
+ if (recipients_string) {
+ sp->map_key (sp, "Bcc");
+ sp->string (sp, recipients_string);
+ }
+
if (reply) {
sp->map_key (sp, "In-reply-to");
sp->string (sp, g_mime_object_get_header (GMIME_OBJECT (message), "In-reply-to"));