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 50E65429E28 for ; Sat, 23 Jul 2011 02:54:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 g-hM6AF+QIsZ for ; Sat, 23 Jul 2011 02:54:27 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id AAE9E431FD0 for ; Sat, 23 Jul 2011 02:54:16 -0700 (PDT) Received: by wyh22 with SMTP id 22so2256890wyh.26 for ; Sat, 23 Jul 2011 02:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=AeXkistFG+jEhuxxyZOrzmPuODumbPiadk9NcqeVbNQ=; b=kC3T+YFb6qDryGn2gxGY4HhOwn417ENdzlQGmhl5j/cxLo+IKJVzYBwCTFrroMdvMl fad0uwJefA7ToyhokAESRdYHs5wTQ77LDR+U8R7Vtq5nHQ97A/Dcv29MGNeJAhHmwoZt ktX0Nc3wurPMLKddR9iPahhYob2dj6YNsOUUQ= Received: by 10.216.79.5 with SMTP id h5mr1980612wee.110.1311414855010; Sat, 23 Jul 2011 02:54:15 -0700 (PDT) Received: from localhost (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com [80.192.18.48]) by mx.google.com with ESMTPS id l55sm820635wed.41.2011.07.23.02.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Jul 2011 02:54:14 -0700 (PDT) From: pazz To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: date_relative in notmuch search json output Date: Sat, 23 Jul 2011 10:54:03 +0100 Message-Id: <1311414844-12378-1-git-send-email-patricktotzke@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <20110715210459.GA12727@brick.lan> References: <20110715210459.GA12727@brick.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Sat, 23 Jul 2011 09:54:28 -0000 expect the date_relative field for thread entries in notmuch search's json output --- test/json | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/json b/test/json index 5a2544c..d54bf25 100755 --- a/test/json +++ b/test/json @@ -12,6 +12,7 @@ add_message "[subject]=\"json-search-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00 output=$(notmuch search --format=json "json-search-message" | notmuch_search_sanitize) test_expect_equal "$output" "[{\"thread\": \"XXX\", \"timestamp\": 946728000, +\"date_relative\": \"2000-01-01\", \"matched\": 1, \"total\": 1, \"authors\": \"Notmuch Test Suite\", @@ -28,6 +29,7 @@ add_message "[subject]=\"json-search-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Ja output=$(notmuch search --format=json "jsön-search-méssage" | notmuch_search_sanitize) test_expect_equal "$output" "[{\"thread\": \"XXX\", \"timestamp\": 946728000, +\"date_relative\": \"2000-01-01\", \"matched\": 1, \"total\": 1, \"authors\": \"Notmuch Test Suite\", -- 1.7.4.1