From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E9C4A431FBD for ; Wed, 5 Sep 2012 14:41:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uXtZkacZSK7J for ; Wed, 5 Sep 2012 14:41:07 -0700 (PDT) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 45A73431FAE for ; Wed, 5 Sep 2012 14:41:07 -0700 (PDT) Received: by bkwj4 with SMTP id j4so524342bkw.26 for ; Wed, 05 Sep 2012 14:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=XI88HRe1FL3Hfd2hG1Fsh6rmqLnVKApwPCyr8hnNlf0=; b=DsrVljK6MJ39oPMLr8/ed9ygawSd8pedFUScau5nTanncrVpxF+F4lKgM9Wq4IlwNz FyWLzCQ5Y3H/P4+rX+ZbnVGR0wNM1XgLvdY7ChZVyHGUuLQExBZLKrBWNRrQ/1/DYKJh D1vyr103PQzmTdgo9nUwJm3VVuuyDoo8L9wEsRHdCWyDsv7oVNSsCEmg2tdPts5bDOif JWzTkMRZOW3E+Mw1uBP8nEz7sy5NTWcjCsF4uiTDs1kf1qNNw85lBPW4DmLclRB275MO /pdLw9qcfOuHMMohQZSPZam1CNlPvK4jI0fQ/aY0IStQW4vTTbIMtWsNlpZ+fTQQevR/ hCgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:x-gm-message-state; bh=XI88HRe1FL3Hfd2hG1Fsh6rmqLnVKApwPCyr8hnNlf0=; b=e9F3vdciPvcvXg2XhtN/ImFzask0ayuGYVuAcduX0Igryh+IQMG2Fc+h9Ywv7Ejgg6 KqXkTHvY91nHfps7wxyLG/Y/r/yfaaCpP2sEAUyLhCIad3Zif3AF5gJfqTPXwpHXDVSf l1WXKpWkN9CAF6X1S/27G1sMWlBYZpFLu4hDNcOpBYXGKoFekkujNgbymX28740NhFa7 cE42nS5/W3Xg89HKEPG7QvGU1CxQ/BYdXkeioQX00/y1VoBMtxxVsOryw5Wh8ovMQWYT 5glr3P+HHxcyPdBhxm56htKhlu16SZFv8gV5leSRBwXbzlMvi6YB6IYe0qaNBAwq06xR ShCQ== Received: by 10.204.143.138 with SMTP id v10mr9904162bku.114.1346881264539; Wed, 05 Sep 2012 14:41:04 -0700 (PDT) Received: by 10.204.143.138 with SMTP id v10mr9904159bku.114.1346881264290; Wed, 05 Sep 2012 14:41:04 -0700 (PDT) Received: from mpn-glaptop.corp.google.com. (dhcp-172-16-75-166.zrh.corp.google.com [172.16.75.166]) by mx.google.com with ESMTPS id j9sm81266bkv.0.2012.09.05.14.41.02 (version=SSLv3 cipher=OTHER); Wed, 05 Sep 2012 14:41:03 -0700 (PDT) From: Michal Nazarewicz To: notmuch@notmuchmail.org Subject: [PATCH] notmuch-show: include Bcc header in json output Date: Wed, 5 Sep 2012 23:40:57 +0200 Message-Id: X-Mailer: git-send-email 1.7.7.3 X-Gm-Message-State: ALoCoQncEHSsaKzoROmi/bQugtWUK29I4ttD0k+hTiYMYfht9fc8UMxcN6QcmSsRwUVTqynyXVht1fhQjITtejPUON0ZxBMQd8BwKLA0j8T/EHldeUc0PRoCNyauxXl9xsQk1Cl3DAB0z2OyxONts8wKbQyW4pr32zeVIdduieg17j1EsYBDbMGRJlEjstnb9Fb+4uvicbCa/2GUujWCF7W3YzJkHovMcw== X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 21:41:08 -0000 From: Michal Nazarewicz --- notmuch-show.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) Actually, I don't understand why json does not include all the headers... diff --git a/notmuch-show.c b/notmuch-show.c index 3556293..0b7abf1 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")); -- 1.7.7.3