Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 789F24196F2 for ; Thu, 22 Apr 2010 01:30:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham 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 7u3sOM9Om35G for ; Thu, 22 Apr 2010 01:30:31 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by olra.theworths.org (Postfix) with ESMTP id BBF74431FC1 for ; Thu, 22 Apr 2010 01:30:30 -0700 (PDT) Received: by wyf23 with SMTP id 23so523275wyf.26 for ; Thu, 22 Apr 2010 01:30:30 -0700 (PDT) Received: by 10.216.157.1 with SMTP id n1mr4309796wek.141.1271925029871; Thu, 22 Apr 2010 01:30:29 -0700 (PDT) Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id p37sm18189246gvf.28.2010.04.22.01.30.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Apr 2010 01:30:28 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 3CE28594163; Thu, 22 Apr 2010 09:30:26 +0100 (BST) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH] json: Replace `date_unix' with `timestamp' in show output Date: Thu, 22 Apr 2010 09:30:24 +0100 Message-Id: <1271925024-8461-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.0 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: Thu, 22 Apr 2010 08:30:31 -0000 Search output was already using `timestamp' for a very similar field, so follow that. --- notmuch-show.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 76873a1..26449fa 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -145,7 +145,7 @@ format_message_json (const void *ctx, notmuch_message_t *message, unused (int in date = notmuch_message_get_date (message); relative_date = notmuch_time_relative_date (ctx, date); - printf ("\"id\": %s, \"match\": %s, \"filename\": %s, \"date_unix\": %ld, \"date_relative\": \"%s\", \"tags\": [", + printf ("\"id\": %s, \"match\": %s, \"filename\": %s, \"timestamp\": %ld, \"date_relative\": \"%s\", \"tags\": [", json_quote_str (ctx_quote, notmuch_message_get_message_id (message)), notmuch_message_get_flag (message, NOTMUCH_MESSAGE_FLAG_MATCH) ? "true" : "false", json_quote_str (ctx_quote, notmuch_message_get_filename (message)), -- 1.7.0