Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / e6 / c118af56a5de560cfed1efdb3afd576c98af30
1 Return-Path: <sojkam1@fel.cvut.cz>\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 55CAB40DDC8\r
6         for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 13:55:20 -0800 (PST)\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 KNrNEBQYxVeN for <notmuch@notmuchmail.org>;\r
16         Sun, 14 Nov 2010 13:55:06 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 0898E40DBE3\r
19         for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 13:54:43 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 0571919F3342;\r
22         Sun, 14 Nov 2010 22:54:42 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id oSpcnHa3w9+b; Sun, 14 Nov 2010 22:54:40 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 652B519F334B;\r
30         Sun, 14 Nov 2010 22:54:40 +0100 (CET)\r
31 Received: from steelpick.2x.cz (unknown [213.29.198.144])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 4E9AEFA004;\r
34         Sun, 14 Nov 2010 22:54:40 +0100 (CET)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1PHkX1-0002P9-R2; Sun, 14 Nov 2010 22:54:39 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 5/5] test: Fix bugs detected thanks to the previous commit\r
41 Date: Sun, 14 Nov 2010 22:54:32 +0100\r
42 Message-Id: <1289771672-9204-5-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.2.3\r
44 In-Reply-To: <87hbfjr2sr.fsf@steelpick.2x.cz>\r
45 References: <87hbfjr2sr.fsf@steelpick.2x.cz>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sun, 14 Nov 2010 21:55:20 -0000\r
59 \r
60 ---\r
61  test/from-guessing |    1 +\r
62  test/search        |   26 ++++++++++++++++++++++++--\r
63  test/thread-naming |    1 +\r
64  3 files changed, 26 insertions(+), 2 deletions(-)\r
65 \r
66 diff --git a/test/from-guessing b/test/from-guessing\r
67 index 8de543f..6744e68 100755\r
68 --- a/test/from-guessing\r
69 +++ b/test/from-guessing\r
70 @@ -98,6 +98,7 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
71  \r
72  test_begin_subtest "Testing From line heuristics (with single configured address)"\r
73  sed -i -e "s/^other_email.*//" "${NOTMUCH_CONFIG}"\r
74 +test_expect_equal '' ''\r
75  \r
76  test_begin_subtest "Magic from guessing (nothing to go on)"\r
77  add_message '[from]="Sender <sender@example.com>"' \\r
78 diff --git a/test/search b/test/search\r
79 index 5939c6a..b180c7f 100755\r
80 --- a/test/search\r
81 +++ b/test/search\r
82 @@ -73,9 +73,31 @@ add_message '[subject]="this phrase should not match the subject search test"' '\r
83  output=$(notmuch search 'subject:"subject search test (phrase)"' | notmuch_search_sanitize)\r
84  test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; subject search test (phrase) (inbox unread)"\r
85  \r
86 -test_begin_subtest 'Search for all messages ("*"\r
87 +test_begin_subtest 'Search for all messages ("*")'\r
88  output=$(notmuch search '*' | notmuch_search_sanitize)\r
89 -test_expect_equal):' "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
90 +test_expect_equal "$output" "thread:XXX   2009-11-18 [1/1] Chris Wilson; [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
91 +thread:XXX   2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
92 +thread:XXX   2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)\r
93 +thread:XXX   2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth; [notmuch] Introducing myself (inbox unread)\r
94 +thread:XXX   2009-11-18 [3/3] Israel Herraiz, Keith Packard, Carl Worth; [notmuch] New to the list (inbox unread)\r
95 +thread:XXX   2009-11-18 [3/3] Jan Janak, Carl Worth; [notmuch] What a great idea! (inbox unread)\r
96 +thread:XXX   2009-11-18 [2/2] Jan Janak, Carl Worth; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
97 +thread:XXX   2009-11-18 [3/3] Aron Griffis, Keith Packard, Carl Worth; [notmuch] archive (inbox unread)\r
98 +thread:XXX   2009-11-18 [2/2] Keith Packard, Carl Worth; [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
99 +thread:XXX   2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox unread)\r
100 +thread:XXX   2009-11-18 [5/5] Mikhail Gusarov, Carl Worth, Keith Packard; [notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
101 +thread:XXX   2009-11-18 [2/2] Keith Packard, Alexander Botero-Lowry; [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
102 +thread:XXX   2009-11-18 [1/1] Alexander Botero-Lowry; [notmuch] request for pull (inbox unread)\r
103 +thread:XXX   2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)\r
104 +thread:XXX   2009-11-18 [1/1] Rolland Santimano; [notmuch] Link to mailing list archives ? (inbox unread)\r
105 +thread:XXX   2009-11-18 [1/1] Jan Janak; [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (inbox unread)\r
106 +thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
107 +thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
108 +thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
109 +thread:XXX   2009-11-18 [2/2] Lars Kellogg-Stedman; [notmuch] \"notmuch help\" outputs to stderr? (attachment inbox unread)\r
110 +thread:XXX   2009-11-17 [1/1] Mikhail Gusarov; [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
111 +thread:XXX   2009-11-17 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
112 +thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
113  thread:XXX   2000-01-01 [1/1] searchbyfrom; search by from (inbox unread)\r
114  thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread)\r
115  thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; subjectsearchtest (inbox unread)\r
116 diff --git a/test/thread-naming b/test/thread-naming\r
117 index 129536e..987c3b3 100755\r
118 --- a/test/thread-naming\r
119 +++ b/test/thread-naming\r
120 @@ -17,6 +17,7 @@ add_message '[subject]="thread-naming: Final thread subject"' \\r
121              '[date]="Mon, 08 Jan 2001 15:43:56 -0000"' \\r
122              "[in-reply-to]=\<$parent\>"\r
123  final=${gen_msg_id}\r
124 +test_expect_equal '' ''\r
125  \r
126  test_begin_subtest "Initial thread name (oldest-first search)"\r
127  output=$(notmuch search --sort=oldest-first thread-naming and tag:inbox | notmuch_search_sanitize)\r
128 -- \r
129 1.7.2.3\r
130 \r