1 Return-Path: <jrollins@finestructure.net>
\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 CC97A431FD4
\r
6 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id ujahwrZ4aGyb for <notmuch@notmuchmail.org>;
\r
16 Sun, 19 Aug 2012 18:53:10 -0700 (PDT)
\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id 87DC4431FC0
\r
20 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:08 -0700 (PDT)
\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by fire-doxen-postvirus (Postfix) with ESMTP id 52A67328015
\r
23 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:07 -0700 (PDT)
\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new
\r
25 Received: from finestructure.net (unknown [76.89.192.57])
\r
26 (Authenticated sender: jrollins)
\r
27 by fire-doxen-submit (Postfix) with ESMTP id 9BE3C2E50D7B
\r
28 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:05 -0700 (PDT)
\r
29 Received: by finestructure.net (Postfix, from userid 1000)
\r
30 id DA506AD4; Sun, 19 Aug 2012 18:53:03 -0700 (PDT)
\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH 07/11] test: search recipient output
\r
34 Date: Sun, 19 Aug 2012 18:52:46 -0700
\r
35 Message-Id: <1345427570-26518-8-git-send-email-jrollins@finestructure.net>
\r
36 X-Mailer: git-send-email 1.7.10.4
\r
37 In-Reply-To: <1345427570-26518-7-git-send-email-jrollins@finestructure.net>
\r
38 References: <1345427570-26518-1-git-send-email-jrollins@finestructure.net>
\r
39 <1345427570-26518-2-git-send-email-jrollins@finestructure.net>
\r
40 <1345427570-26518-3-git-send-email-jrollins@finestructure.net>
\r
41 <1345427570-26518-4-git-send-email-jrollins@finestructure.net>
\r
42 <1345427570-26518-5-git-send-email-jrollins@finestructure.net>
\r
43 <1345427570-26518-6-git-send-email-jrollins@finestructure.net>
\r
44 <1345427570-26518-7-git-send-email-jrollins@finestructure.net>
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Mon, 20 Aug 2012 01:53:12 -0000
\r
59 Simple json test for a new additional recipient field. known_broken
\r
60 to be removed with next patch.
\r
62 test/json | 14 ++++++++++++++
\r
63 1 file changed, 14 insertions(+)
\r
65 diff --git a/test/json b/test/json
\r
66 index ac8fa8e..ac423a8 100755
\r
69 @@ -60,4 +60,18 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
\r
70 \"tags\": [\"inbox\",
\r
73 +test_begin_subtest "Search message: include recipients"
\r
74 +test_subtest_known_broken
\r
75 +output=$(notmuch search --format=json --include-recipients "json-search-message" | notmuch_search_sanitize)
\r
76 +test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
\r
77 + \"timestamp\": 946728000,
\r
78 + \"date_relative\": \"2000-01-01\",
\r
81 + \"authors\": \"Notmuch Test Suite\",
\r
82 + \"recipients\": \"Notmuch Test Suite\",
\r
83 + \"subject\": \"json-search-subject\",
\r
84 + \"tags\": [\"inbox\",
\r