1 Return-Path: <patricktotzke@googlemail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 50E65429E28
\r
6 for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:28 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id g-hM6AF+QIsZ for <notmuch@notmuchmail.org>;
\r
17 Sat, 23 Jul 2011 02:54:27 -0700 (PDT)
\r
18 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
19 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id AAE9E431FD0
\r
22 for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:16 -0700 (PDT)
\r
23 Received: by wyh22 with SMTP id 22so2256890wyh.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:15 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=googlemail.com; s=gamma;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references
\r
28 :mime-version:content-type:content-transfer-encoding;
\r
29 bh=AeXkistFG+jEhuxxyZOrzmPuODumbPiadk9NcqeVbNQ=;
\r
30 b=kC3T+YFb6qDryGn2gxGY4HhOwn417ENdzlQGmhl5j/cxLo+IKJVzYBwCTFrroMdvMl
\r
31 fad0uwJefA7ToyhokAESRdYHs5wTQ77LDR+U8R7Vtq5nHQ97A/Dcv29MGNeJAhHmwoZt
\r
32 ktX0Nc3wurPMLKddR9iPahhYob2dj6YNsOUUQ=
\r
33 Received: by 10.216.79.5 with SMTP id h5mr1980612wee.110.1311414855010;
\r
34 Sat, 23 Jul 2011 02:54:15 -0700 (PDT)
\r
35 Received: from localhost (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com
\r
37 by mx.google.com with ESMTPS id l55sm820635wed.41.2011.07.23.02.54.12
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Sat, 23 Jul 2011 02:54:14 -0700 (PDT)
\r
40 From: pazz <patricktotzke@googlemail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 1/2] test: date_relative in notmuch search json output
\r
43 Date: Sat, 23 Jul 2011 10:54:03 +0100
\r
44 Message-Id: <1311414844-12378-1-git-send-email-patricktotzke@gmail.com>
\r
45 X-Mailer: git-send-email 1.7.4.1
\r
46 In-Reply-To: <20110715210459.GA12727@brick.lan>
\r
47 References: <20110715210459.GA12727@brick.lan>
\r
49 Content-Type: text/plain; charset=UTF-8
\r
50 Content-Transfer-Encoding: 8bit
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Sat, 23 Jul 2011 09:54:28 -0000
\r
65 expect the date_relative field for thread entries
\r
66 in notmuch search's json output
\r
69 1 files changed, 2 insertions(+), 0 deletions(-)
\r
71 diff --git a/test/json b/test/json
\r
72 index 5a2544c..d54bf25 100755
\r
75 @@ -12,6 +12,7 @@ add_message "[subject]=\"json-search-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00
\r
76 output=$(notmuch search --format=json "json-search-message" | notmuch_search_sanitize)
\r
77 test_expect_equal "$output" "[{\"thread\": \"XXX\",
\r
78 \"timestamp\": 946728000,
\r
79 +\"date_relative\": \"2000-01-01\",
\r
82 \"authors\": \"Notmuch Test Suite\",
\r
83 @@ -28,6 +29,7 @@ add_message "[subject]=\"json-search-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Ja
\r
84 output=$(notmuch search --format=json "jsön-search-méssage" | notmuch_search_sanitize)
\r
85 test_expect_equal "$output" "[{\"thread\": \"XXX\",
\r
86 \"timestamp\": 946728000,
\r
87 +\"date_relative\": \"2000-01-01\",
\r
90 \"authors\": \"Notmuch Test Suite\",
\r