Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / 5e / bd72c2aa4e05667c2abfaa5c0545898ff7d09d
1 Return-Path: <jani@nikula.org>\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 E31AF431FC2\r
6         for <notmuch@notmuchmail.org>; Wed, 12 Sep 2012 14:27:58 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[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 r+ZzbmKn26pO for <notmuch@notmuchmail.org>;\r
17         Wed, 12 Sep 2012 14:27:58 -0700 (PDT)\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
19         [209.85.217.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 EEF9F431FC4\r
22         for <notmuch@notmuchmail.org>; Wed, 12 Sep 2012 14:27:55 -0700 (PDT)\r
23 Received: by mail-lb0-f181.google.com with SMTP id gk1so1587473lbb.26\r
24         for <notmuch@notmuchmail.org>; Wed, 12 Sep 2012 14:27:55 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
28         :in-reply-to:references:mime-version:content-type\r
29         :content-transfer-encoding:x-gm-message-state;\r
30         bh=uZbnAmbfi92UlVKd4pkZIBgrd/Ggv7frc7d058UdBpY=;\r
31         b=XhiW/LTEur9MproNEuasmXJ/yrRjLICofo2oo7JXLnFXHBfTYm+Z+ta2BgFyMUKemQ\r
32         rne2qfvSkWbeZgFuUazAjXRhxSaAC3sg5/OJhlaD423aD9hm7uTNHy1u555HZ7wded5w\r
33         v7zfIP2kkWcPsJH9uupc2k/O5MwAtpzb8PKQ5kHyX6zCiO1BE3UO1Cz9iL/FPPtMKwhk\r
34         wqwjbdZF2PTr7gG26HwhbnQdmYIElEycnJZwRaYfvNZAJqj7rI0tH0oB8z7b0ZffbZhH\r
35         6/041obM2+Pq/jaBNLdD0NlakGKegZHK5OB/KWj5SHg/kvO+paig6m8IYHLdEvdFsVi8\r
36         R7mw==\r
37 Received: by 10.152.110.40 with SMTP id hx8mr20526350lab.9.1347485275557;\r
38         Wed, 12 Sep 2012 14:27:55 -0700 (PDT)\r
39 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
40         [80.223.81.27])\r
41         by mx.google.com with ESMTPS id p7sm5343634lbg.17.2012.09.12.14.27.53\r
42         (version=SSLv3 cipher=OTHER); Wed, 12 Sep 2012 14:27:54 -0700 (PDT)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: notmuch@notmuchmail.org,\r
45         David Bremner <david@tethera.net>\r
46 Subject: [PATCH v3 7/9] test: add tests for date:since..until range queries\r
47 Date: Thu, 13 Sep 2012 00:27:24 +0300\r
48 Message-Id:\r
49  <26006205c9ba7badae63580a341ab09b959ceb1b.1347484177.git.jani@nikula.org>\r
50 X-Mailer: git-send-email 1.7.9.5\r
51 In-Reply-To: <cover.1347484177.git.jani@nikula.org>\r
52 References: <cover.1347484177.git.jani@nikula.org>\r
53 In-Reply-To: <cover.1347484177.git.jani@nikula.org>\r
54 References: <cover.1347484177.git.jani@nikula.org>\r
55 MIME-Version: 1.0\r
56 Content-Type: text/plain; charset=UTF-8\r
57 Content-Transfer-Encoding: 8bit\r
58 X-Gm-Message-State:\r
59  ALoCoQlYjLmbNWS5/23hhAVgpCpTiZ5IwBGDrDJcTlfLET6OeJabsA/+nU7ZwGzX/O6C/WjY8kCR\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Wed, 12 Sep 2012 21:27:59 -0000\r
73 \r
74 A brief initial test set.\r
75 ---\r
76  test/notmuch-test |    1 +\r
77  test/search-date  |   21 +++++++++++++++++++++\r
78  2 files changed, 22 insertions(+)\r
79  create mode 100755 test/search-date\r
80 \r
81 diff --git a/test/notmuch-test b/test/notmuch-test\r
82 index 7eadfdf..9a1b375 100755\r
83 --- a/test/notmuch-test\r
84 +++ b/test/notmuch-test\r
85 @@ -61,6 +61,7 @@ TESTS="\r
86    emacs-show\r
87    missing-headers\r
88    parse-time-string\r
89 +  search-date\r
90  "\r
91  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
92  \r
93 diff --git a/test/search-date b/test/search-date\r
94 new file mode 100755\r
95 index 0000000..70bcf34\r
96 --- /dev/null\r
97 +++ b/test/search-date\r
98 @@ -0,0 +1,21 @@\r
99 +#!/usr/bin/env bash\r
100 +test_description="date:since..until queries"\r
101 +. ./test-lib.sh\r
102 +\r
103 +add_email_corpus\r
104 +\r
105 +test_begin_subtest "Absolute date range"\r
106 +output=$(notmuch search date:2010-12-16..12/16/2010 | notmuch_search_sanitize)\r
107 +test_expect_equal "$output" "thread:XXX   2010-12-16 [1/1] Olivier Berger; Essai accentuĂ© (inbox unread)"\r
108 +\r
109 +test_begin_subtest "Absolute time range with TZ"\r
110 +notmuch search date:18-Nov-2009_02:19:26-0800..2009-11-18_04:49:52-06:00 | notmuch_search_sanitize > OUTPUT\r
111 +cat <<EOF >EXPECTED\r
112 +thread:XXX   2009-11-18 [1/3] Carl Worth| Jan Janak; [notmuch] What a great idea! (inbox unread)\r
113 +thread:XXX   2009-11-18 [1/2] Carl Worth| Jan Janak; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
114 +thread:XXX   2009-11-18 [1/3] Carl Worth| Aron Griffis, Keith Packard; [notmuch] archive (inbox unread)\r
115 +thread:XXX   2009-11-18 [1/2] Carl Worth| Keith Packard; [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
116 +EOF\r
117 +test_expect_equal_file OUTPUT EXPECTED\r
118 +\r
119 +test_done\r
120 -- \r
121 1.7.9.5\r
122 \r