database error
[notmuch-archives.git] / 6c / 9733c4a459e18b6a1da3e98e5bf5e3724b5590
1 Return-Path: <hohndel@gr8dns.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 AE724414BB9\r
6         for <notmuch@notmuchmail.org>; Sat, 24 Apr 2010 11:21:22 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\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 ly1E5C4QbpPZ for <notmuch@notmuchmail.org>;\r
16         Sat, 24 Apr 2010 11:21:20 -0700 (PDT)\r
17 Received: from mail.hohndel.org (mail.hohndel.org [65.23.157.147])\r
18         by olra.theworths.org (Postfix) with ESMTP id 79656418C25\r
19         for <notmuch@notmuchmail.org>; Sat, 24 Apr 2010 11:21:17 -0700 (PDT)\r
20 Received: by mail.hohndel.org (Postfix, from userid 112)\r
21         id 37A15340F8; Sat, 24 Apr 2010 14:21:17 -0400 (EDT)\r
22 Received: from x200.gr8dns.org (unknown [65.23.157.147])\r
23         by mail.hohndel.org (Postfix) with ESMTP id 71C49340FD;\r
24         Sat, 24 Apr 2010 14:21:01 -0400 (EDT)\r
25 Received: by x200.gr8dns.org (Postfix, from userid 500)\r
26         id 15AD3CC59F; Sat, 24 Apr 2010 11:21:01 -0700 (PDT)\r
27 From: Dirk Hohndel <hohndel@infradead.org>\r
28 To: <notmuch@notmuchmail.org>\r
29 Subject: [PATCH 4/5] Add tests for author name reordering in search results\r
30 Date: Sat, 24 Apr 2010 11:20:56 -0700\r
31 Message-Id: <1272133257-15708-5-git-send-email-hohndel@infradead.org>\r
32 X-Mailer: git-send-email 1.6.6.1\r
33 In-Reply-To: <1272133257-15708-4-git-send-email-hohndel@infradead.org>\r
34 References: <1272133257-15708-1-git-send-email-hohndel@infradead.org>\r
35         <1272133257-15708-2-git-send-email-hohndel@infradead.org>\r
36         <1272133257-15708-3-git-send-email-hohndel@infradead.org>\r
37         <1272133257-15708-4-git-send-email-hohndel@infradead.org>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Sat, 24 Apr 2010 18:21:23 -0000\r
51 \r
52 This should be required for all patches :-)\r
53 \r
54 Signed-off-by: Dirk Hohndel <hohndel@infradead.org>\r
55 ---\r
56  test/notmuch-test |   28 +++++++++++++++++++++++++++-\r
57  1 files changed, 27 insertions(+), 1 deletions(-)\r
58 \r
59 diff --git a/test/notmuch-test b/test/notmuch-test\r
60 index 7082344..f455232 100755\r
61 --- a/test/notmuch-test\r
62 +++ b/test/notmuch-test\r
63 @@ -867,6 +867,33 @@ printf " Searching returns all three messages in one thread..."\r
64  output=$($NOTMUCH search foo | notmuch_search_sanitize)\r
65  pass_if_equal "$output" "thread:XXX   2000-01-01 [3/3] Notmuch Test Suite; brokenthreadtest (inbox unread)"\r
66  \r
67 +printf "\nTesting author reordering;\n"\r
68 +printf " Adding parent message...\t\t\t"\r
69 +generate_message [body]=findme [id]=new-parent-id [subject]=author-reorder-threadtest '[from]="User <user@example.com>"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"'\r
70 +output=$(NOTMUCH_NEW)\r
71 +pass_if_equal "$output" "Added 1 new message to the database."\r
72 +printf " Adding initial child message...\t\t"\r
73 +generate_message [body]=findme '[in-reply-to]=\<new-parent-id\>' [subject]=author-reorder-threadtest '[from]="User1 <user1@example.com>"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"'\r
74 +output=$(NOTMUCH_NEW)\r
75 +pass_if_equal "$output" "Added 1 new message to the database."\r
76 +printf " Adding second child message...\t\t\t"\r
77 +generate_message [body]=findme '[in-reply-to]=\<new-parent-id\>' [subject]=author-reorder-threadtest '[from]="User2 <user2@example.com>"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"'\r
78 +output=$(NOTMUCH_NEW)\r
79 +pass_if_equal "$output" "Added 1 new message to the database."\r
80 +printf " Searching when all three messages match...\t"\r
81 +output=$($NOTMUCH search findme | notmuch_search_sanitize)\r
82 +pass_if_equal "$output" "thread:XXX   2000-01-01 [3/3] User, User1, User2; author-reorder-threadtest (inbox unread)"\r
83 +printf " Searching when two messages match...\t\t"\r
84 +output=$($NOTMUCH search User1 or User2 | notmuch_search_sanitize)\r
85 +pass_if_equal "$output" "thread:XXX   2000-01-01 [2/3] User1, User2| User; author-reorder-threadtest (inbox unread)"\r
86 +printf " Searching when only one message matches...\t"\r
87 +output=$($NOTMUCH search User2 | notmuch_search_sanitize)\r
88 +pass_if_equal "$output" "thread:XXX   2000-01-01 [1/3] User2| User, User1; author-reorder-threadtest (inbox unread)"\r
89 +printf " Searching when only first message matches...\t"\r
90 +output=$($NOTMUCH search User | notmuch_search_sanitize)\r
91 +pass_if_equal "$output" "thread:XXX   2000-01-01 [1/3] User| User1, User2; author-reorder-threadtest (inbox unread)"\r
92 +\r
93 +printf "\nTesting From line heuristics;\n"\r
94  printf " Magic from guessing (nothing to go on)...\t"\r
95  add_message '[from]="Sender <sender@example.com>"' \\r
96               [to]=mailinglist@notmuchmail.org \\r
97 @@ -965,7 +992,6 @@ References: <${gen_msg_id}>\r
98  On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:\r
99  > from guessing test"\r
100  \r
101 -\r
102  echo ""\r
103  echo "Notmuch test suite complete."\r
104  \r
105 -- \r
106 1.6.6.1\r
107 \r