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 36240431FAF
\r
6 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 22:16:12 -0800 (PST)
\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 QqVh2j3ObHAV for <notmuch@notmuchmail.org>;
\r
16 Sat, 24 Nov 2012 22:16:11 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 896EF431FAE
\r
20 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 22:16:11 -0800 (PST)
\r
21 X-AuditID: 12074425-b7fcc6d00000091f-5e-50b1b7ab3bec
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id E8.BB.02335.BA7B1B05; Sun, 25 Nov 2012 01:16:11 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qAP6G5Ac028265;
\r
27 Sun, 25 Nov 2012 01:16:05 -0500
\r
28 Received: from drake.dyndns.org
\r
29 (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com
\r
30 [209.6.116.242]) (authenticated bits=0)
\r
31 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
32 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qAP6G3i9006918
\r
33 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
34 Sun, 25 Nov 2012 01:16:04 -0500 (EST)
\r
35 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
36 (envelope-from <amdragon@mit.edu>)
\r
37 id 1TcVVb-0008HO-96; Sun, 25 Nov 2012 01:16:03 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH 2/3] test: Test for ignoring multi-message mbox
\r
41 Date: Sun, 25 Nov 2012 01:16:00 -0500
\r
42 Message-Id: <1353824161-31717-2-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.10.4
\r
44 In-Reply-To: <1353824161-31717-1-git-send-email-amdragon@mit.edu>
\r
45 References: <1353824161-31717-1-git-send-email-amdragon@mit.edu>
\r
46 X-Brightmail-Tracker:
\r
47 H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsUixG6nort6+8YAg6ez2SxutHYzWly/OZPZ
\r
48 gcnj2apbzB5bDr1nDmCK4rJJSc3JLEst0rdL4Mr4cXYKY8EPnorjn64wNzB+4upi5OSQEDCR
\r
49 eHrmOCuELSZx4d56ti5GLg4hgX2MEtdfvmOFcDYwSpzYeJ8FwnnEJLH/2g4mkBYhgbmMEj1z
\r
50 2UFsNgENiW37lzOC2CIC0hI7784GG8ssYClx9Ws7WL2wgL3E0lmP2EBsFgFViXfHesHivAIO
\r
51 Es8bFzJCnKEo0f1sAlgNp4CjxMK+A2wQuxwkzk8+zjKBkX8BI8MqRtmU3Crd3MTMnOLUZN3i
\r
52 5MS8vNQiXQu93MwSvdSU0k2M4FByUd3BOOGQ0iFGAQ5GJR7eG4kbA4RYE8uKK3MPMUpyMCmJ
\r
53 8k7dDBTiS8pPqcxILM6ILyrNSS0+xCjBwawkwntgLVCONyWxsiq1KB8mJc3BoiTOeyPlpr+Q
\r
54 QHpiSWp2ampBahFMVoaDQ0mCd/tWoEbBotT01Iq0zJwShDQTByfIcB6g4dLbQYYXFyTmFmem
\r
55 Q+RPMSpKifP+2QaUEABJZJTmwfXCYv0VozjQK8K8giDtPMA0Adf9CmgwE9Dgp7PXgQwuSURI
\r
56 STUwei1Q3vrvn4ux4OcHzyV8pNSzObJMmlede797C3ve1q62i/6ny0snTNPilT00exr3MyGp
\r
57 FY9E8t4YdM+S/m23PcNy5rH9xVw5Bx56NE1RWrA6NGiquJry7utiNgqljy37P/S52H3TrNde
\r
58 +ar8xJ4j00XVu9wOLtu1+NCB+TvZbxnvk8opCpmcrMRSnJFoqMVcVJwIAOVctlzQAgAA
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Sun, 25 Nov 2012 06:16:12 -0000
\r
73 This test is currently broken. Note that its brokenness cascades and
\r
74 causes the next test to fail as well (because notmuch incorrectly
\r
75 indexes the mbox file).
\r
77 test/new | 18 ++++++++++++++++++
\r
78 1 file changed, 18 insertions(+)
\r
80 diff --git a/test/new b/test/new
\r
81 index 43d56e4..29f9aff 100755
\r
84 @@ -178,16 +178,34 @@ test_expect_equal "$output" \
\r
86 # This test requires that notmuch new has been run at least once.
\r
87 test_begin_subtest "Skip and report non-mail files"
\r
88 +test_subtest_known_broken
\r
90 mkdir -p "${MAIL_DIR}"/.git && touch "${MAIL_DIR}"/.git/config
\r
91 touch "${MAIL_DIR}"/ignored_file
\r
92 touch "${MAIL_DIR}"/.ignored_hidden_file
\r
93 +cat > "${MAIL_DIR}"/mbox_file <<EOF
\r
94 +From test_suite@notmuchmail.org Fri Jan 5 15:43:57 2001
\r
95 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
96 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
97 +Subject: Test mbox message 1
\r
101 +From test_suite@notmuchmail.org Fri Jan 5 15:43:57 2001
\r
102 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
103 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
104 +Subject: Test mbox message 2
\r
108 output=$(NOTMUCH_NEW 2>&1)
\r
109 test_expect_equal "$output" \
\r
110 "Note: Ignoring non-mail file: ${MAIL_DIR}/.git/config
\r
111 Note: Ignoring non-mail file: ${MAIL_DIR}/.ignored_hidden_file
\r
112 Note: Ignoring non-mail file: ${MAIL_DIR}/ignored_file
\r
113 +Note: Ignoring non-mail file: ${MAIL_DIR}/mbox_file
\r
114 Added 1 new message to the database."
\r
115 +rm "${MAIL_DIR}"/mbox_file
\r
117 test_begin_subtest "Ignore files and directories specified in new.ignore"
\r