1 Return-Path: <amdragon@mit.edu>
\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 2E806431FCB
\r
6 for <notmuch@notmuchmail.org>; Sun, 15 Jun 2014 19:41:32 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 KTHQh2tcS4QN for <notmuch@notmuchmail.org>;
\r
16 Sun, 15 Jun 2014 19:41:28 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id D2A80431FD7
\r
22 for <notmuch@notmuchmail.org>; Sun, 15 Jun 2014 19:41:07 -0700 (PDT)
\r
23 X-AuditID: 1209190d-f798f6d000000c3b-e3-539e5943acd2
\r
24 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
25 (using TLS with cipher AES256-SHA (256/256 bits))
\r
26 (Client did not present a certificate)
\r
27 by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP
\r
28 id A9.03.03131.3495E935; Sun, 15 Jun 2014 22:41:07 -0400 (EDT)
\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
30 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s5G2euA8005172;
\r
31 Sun, 15 Jun 2014 22:40:56 -0400
\r
32 Received: from drake.dyndns.org
\r
33 (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com
\r
34 [216.15.114.40]) (authenticated bits=0)
\r
35 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
36 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s5G2en8D003391
\r
37 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
38 Sun, 15 Jun 2014 22:40:55 -0400
\r
39 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
40 (envelope-from <amdragon@mit.edu>)
\r
41 id 1WwMqn-0004HH-Cj; Sun, 15 Jun 2014 22:40:49 -0400
\r
42 From: Austin Clements <amdragon@MIT.EDU>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH 4/5] test: Known-broken test for overlapping/adjacent termpos
\r
45 Date: Sun, 15 Jun 2014 22:40:33 -0400
\r
46 Message-Id: <1402886434-16169-5-git-send-email-amdragon@mit.edu>
\r
47 X-Mailer: git-send-email 2.0.0.rc2
\r
48 In-Reply-To: <1402886434-16169-1-git-send-email-amdragon@mit.edu>
\r
49 References: <1402886434-16169-1-git-send-email-amdragon@mit.edu>
\r
51 Content-Type: text/plain; charset=UTF-8
\r
52 Content-Transfer-Encoding: 8bit
\r
53 X-Brightmail-Tracker:
\r
54 H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42IR4hRV1nWOnBdsMOcPq8X1mzOZHRg9nq26
\r
55 xRzAGMVlk5Kak1mWWqRvl8CV0fXCqaCTv2Lrxs8sDYx3eboYOTkkBEwk2jdeZYewxSQu3FvP
\r
56 1sXIxSEkMJtJYsGBmawQzkZGiU1nP7KCVAkJ3GGSmLuiEiIxl1Hi8IovbCAJNgENiW37lzOC
\r
57 2CIC0hI7784GauDgYBZQk/jTpQISFhbwlbh3ZS8TiM0ioCpxau0bdpASXgEHie0dsRBHKAGV
\r
58 zAGbwingKDFx9Sl2iLUOEv/O3ABr5RUQlDg58wkLxHR1ifXzhEDCzALyEs1bZzNPYBSahaRq
\r
59 FkLVLCRVCxiZVzHKpuRW6eYmZuYUpybrFicn5uWlFuka6eVmluilppRuYgQHryTvDsZ3B5UO
\r
60 MQpwMCrx8E5wnBcsxJpYVlyZe4hRkoNJSZSXGSTEl5SfUpmRWJwRX1Sak1p8iFGCg1lJhNfe
\r
61 ByjHm5JYWZValA+TkuZgURLnfWttFSwkkJ5YkpqdmlqQWgSTleHgUJLgNYsAahQsSk1PrUjL
\r
62 zClBSDNxcIIM5wEabglSw1tckJhbnJkOkT/FqMux6t+ZNiYhlrz8vFQpcV5OkCIBkKKM0jy4
\r
63 ObCk84pRHOgtYd5ckCoeYMKCm/QKaAkT0JKbi2eBLClJREhJNTBOZn9U6bfpvdWF2UEzzwad
\r
64 uh9YzX89+TsD77SSjofLnrwVn51U+3W+9Ol5BXyR8d9Fb3rFrtqwjm3vxs1Vm8+W2FsJH7Be
\r
65 e+O8u3i15V4Z5XUi7bv9NLbOvs3sOTso2HX3iVDW9eq9Cxx12H3rNvm9/vyEddcvDo43/zcz
\r
66 3FqhwB3fmjVfcLG7EktxRqKhFnNRcSIALKm8PxUDAAA=
\r
67 X-BeenThere: notmuch@notmuchmail.org
\r
68 X-Mailman-Version: 2.1.13
\r
70 List-Id: "Use and development of the notmuch mail system."
\r
71 <notmuch.notmuchmail.org>
\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
73 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
75 List-Post: <mailto:notmuch@notmuchmail.org>
\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
78 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
79 X-List-Received-Date: Mon, 16 Jun 2014 02:41:32 -0000
\r
81 This adds two known-broken tests and one working test related to the
\r
82 term positions assigned to terms from different headers or MIME parts.
\r
83 The first test fails because we don't create a termpos gap between
\r
84 different headers. The second test fails because we don't adjust
\r
85 termpos at all when indexing multiple parts.
\r
87 test/T080-search.sh | 40 ++++++++++++++++++++++++++++++++++++++++
\r
88 1 file changed, 40 insertions(+)
\r
90 diff --git a/test/T080-search.sh b/test/T080-search.sh
\r
91 index b63bf02..3f6b565 100755
\r
92 --- a/test/T080-search.sh
\r
93 +++ b/test/T080-search.sh
\r
94 @@ -145,4 +145,44 @@ add_message '[subject]="utf8-message-body-subject"' '[date]="Sat, 01 Jan 2000 12
\r
95 output=$(notmuch search "bödý" | notmuch_search_sanitize)
\r
96 test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-message-body-subject (inbox unread)"
\r
99 +cat <<EOF > ${MAIL_DIR}/termpos
\r
100 +From: Source <source@example.com>
\r
101 +To: Dest <dest@example.com>
\r
102 +Subject: part overlap test
\r
103 +Date: Sat, 01 January 2000 00:00:00 +0000
\r
104 +Message-ID: <termpos>
\r
106 +Content-Type: multipart/mixed; boundary="==-=="
\r
109 +Content-Type: text/plain
\r
114 +Content-Type: text/plain
\r
120 +notmuch new > /dev/null
\r
122 +test_begin_subtest "headers do not have adjacent term positions"
\r
123 +test_subtest_known_broken
\r
124 +# Regression test for a bug where term positions for non-prefixed
\r
125 +# terms weren't updated
\r
126 +output=$(notmuch search id:termpos and '"com dest"')
\r
127 +test_expect_equal "$output" ""
\r
129 +test_begin_subtest "parts have non-overlapping term positions"
\r
130 +test_subtest_known_broken
\r
131 +output=$(notmuch search id:termpos and '"a y c"')
\r
132 +test_expect_equal "$output" ""
\r
134 +test_begin_subtest "parts do not have adjacent term positions"
\r
135 +output=$(notmuch search id:termpos and '"c x"')
\r
136 +test_expect_equal "$output" ""
\r