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 E6BE7431FBD for ; Wed, 7 Nov 2012 07:27:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 vTgUB5SCzg-X for ; Wed, 7 Nov 2012 07:27:09 -0800 (PST) Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU [18.9.25.13]) by olra.theworths.org (Postfix) with ESMTP id 3C37F431FBC for ; Wed, 7 Nov 2012 07:27:09 -0800 (PST) X-AuditID: 1209190d-b7f906d0000008de-bd-509a7dcc0475 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id 07.6E.02270.CCD7A905; Wed, 7 Nov 2012 10:27:08 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id qA7FR7J3027033; Wed, 7 Nov 2012 10:27:07 -0500 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qA7FR5MI027050 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Wed, 7 Nov 2012 10:27:06 -0500 (EST) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1TW7Wy-0005lF-TC; Wed, 07 Nov 2012 10:27:04 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 2/3] show: More aggressively document the presence of devel/schemata Date: Wed, 7 Nov 2012 10:27:01 -0500 Message-Id: <1352302022-21486-3-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1352302022-21486-1-git-send-email-amdragon@mit.edu> References: <1352302022-21486-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsUixCmqrHumdlaAwe8tahbXb85ktnjeupfJ gclj56y77B7PVt1iDmCK4rJJSc3JLEst0rdL4Mq4saCbreA5d8W/OU1sDYzLOLsYOTkkBEwk Li88zghhi0lcuLeerYuRi0NIYB+jxMu3XSwQznpGif27JkE5D5kkpu1rYYZw5jJKfJg9lQmk n01AQ2Lb/uVgs0QEpCV23p3NCmIzC1hJLHt8ASwuLBAi8WjDPDYQm0VAVWL9oltgcV4BB4kd cyczQ9whL/H0fh9YDaeAo8SmB7/B5ggB1RzY9pZpAiP/AkaGVYyyKblVurmJmTnFqcm6xcmJ eXmpRbpGermZJXqpKaWbGMHBJMm7g/HdQaVDjAIcjEo8vA2RMwOEWBPLiitzDzFKcjApifIe q54VIMSXlJ9SmZFYnBFfVJqTWnyIUYKDWUmEl6UQKMebklhZlVqUD5OS5mBREue9knLTX0gg PbEkNTs1tSC1CCYrw8GhJMH7twaoUbAoNT21Ii0zpwQhzcTBCTKcB2j4VZAa3uKCxNzizHSI /ClGRSlx3uUgCQGQREZpHlwvLNpfMYoDvSLMewikigeYKOC6XwENZgIaXHxtBsjgkkSElFQD Y36Iab9Hq8QurcmKBj3sv3n3xvyIvrOkfM2Xpz71LIb81jqLLtcV/C/0zC46f3p/buTqV/ef /BH4Nn++u6h36fvarNjXLH/Kgwy7uxcKfIxfVXjLXj2NrZp9SYPdzA0apVFzXMM+am5bnGaw 8MAtQ3uxU9/7VFXWasQIPKx9En7RLEh/2/5kJZbijERDLeai4kQA6iLfUdECAAA= 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, 07 Nov 2012 15:27:10 -0000 Previously, the only mention of devel/schemata was a comment at the top of format_part_json, but the JSON output code is spread across several functions that are distributed across notmuch-show.c. Add references from the other three key JSON output functions. --- notmuch-show.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/notmuch-show.c b/notmuch-show.c index f758f56..2fa2292 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -110,6 +110,9 @@ _get_one_line_summary (const void *ctx, notmuch_message_t *message) static void format_message_json (sprinter_t *sp, notmuch_message_t *message) { + /* Any changes to the JSON format should be reflected in the file + * devel/schemata. */ + void *local = talloc_new (NULL); notmuch_tags_t *tags; time_t date; @@ -208,6 +211,9 @@ void format_headers_json (sprinter_t *sp, GMimeMessage *message, notmuch_bool_t reply) { + /* Any changes to the JSON format should be reflected in the file + * devel/schemata. */ + InternetAddressList *recipients; const char *recipients_string; const char *reply_to_string; @@ -359,6 +365,9 @@ signer_status_to_string (GMimeSignerStatus x) static void format_part_sigstatus_json (sprinter_t *sp, mime_node_t *node) { + /* Any changes to the JSON format should be reflected in the file + * devel/schemata. */ + GMimeSignatureList *siglist = node->sig_list; sp->begin_list (sp); -- 1.7.10