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 29016431FC0
\r
6 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 22:16:24 -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 sckN-XGgHgIM for <notmuch@notmuchmail.org>;
\r
16 Sat, 24 Nov 2012 22:16:23 -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 DFC1D431FC9
\r
20 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 22:16:15 -0800 (PST)
\r
21 X-AuditID: 12074425-b7fcc6d00000091f-64-50b1b7aff484
\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 59.BB.02335.FA7B1B05; Sun, 25 Nov 2012 01:16:15 -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 qAP6G575028264;
\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 qAP6G3j3006917
\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-0008HM-7x; 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 1/3] test: Test notmuch new for single-message mbox
\r
41 Date: Sun, 25 Nov 2012 01:15:59 -0500
\r
42 Message-Id: <1353824161-31717-1-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.10.4
\r
44 X-Brightmail-Tracker:
\r
45 H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsUixG6nort++8YAg+PLdSxutHYzWly/OZPZ
\r
46 gcnj2apbzB5bDr1nDmCK4rJJSc3JLEst0rdL4Mq4NWcmW8FM9opjm+axNDD+Zu1i5OCQEDCR
\r
47 uL49v4uRE8gUk7hwbz1bFyMXh5DAPkaJ3hdvmSCcDYwSl15sYoRwHjFJnJ13mBGkRUhgLqPE
\r
48 ho0qIDabgIbEtv3LweIiAtISO+/OZgWxmQUsJa5+bWcCsYUFnCUedk5gAbFZBFQlOi7uYgex
\r
49 eQUcJBZ9+s4GcYaiRPezCWwTGHkXMDKsYpRNya3SzU3MzClOTdYtTk7My0st0rXQy80s0UtN
\r
50 Kd3ECA4MF9UdjBMOKR1iFOBgVOLhvZG4MUCINbGsuDL3EKMkB5OSKO/UzUAhvqT8lMqMxOKM
\r
51 +KLSnNTiQ4wSHMxKIrwH1gLleFMSK6tSi/JhUtIcLErivDdSbvoLCaQnlqRmp6YWpBbBZGU4
\r
52 OJQkeLdvBWoULEpNT61Iy8wpQUgzcXCCDOcBGi69HWR4cUFibnFmOkT+FKOilDjvn21ACQGQ
\r
53 REZpHlwvLHJfMYoDvSLMKwjSzgOMerjuV0CDmYAGP529DmRwSSJCSqqBsbCmuO0Ma9iyHbcP
\r
54 HqrMFH9/95PFHcE7/rJmMW5d82oErGNeamiLixSmMTz0STz7o1fIZMHhHO6um+1bnEwv7ToX
\r
55 If6AW+G2yRqb6ydj1IQirp/T3vpIR/Gq6jGxi51xD3Ibl8U8NdmRdqbyV5yb4bptTuXBd7nV
\r
56 FxzlUeP1YgxVDj++8NdeJZbijERDLeai4kQA/SMqsLcCAAA=
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Sun, 25 Nov 2012 06:16:24 -0000
\r
71 We support this for historical reasons.
\r
73 test/new | 13 +++++++++++++
\r
74 1 file changed, 13 insertions(+)
\r
76 diff --git a/test/new b/test/new
\r
77 index 587aa11..43d56e4 100755
\r
80 @@ -163,6 +163,19 @@ rm -rf "${MAIL_DIR}"/two
\r
81 output=$(NOTMUCH_NEW)
\r
82 test_expect_equal "$output" "No new mail. Removed 3 messages."
\r
84 +test_begin_subtest "Support single-message mbox"
\r
85 +cat > "${MAIL_DIR}"/mbox_file1 <<EOF
\r
86 +From test_suite@notmuchmail.org Fri Jan 5 15:43:57 2001
\r
87 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
88 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
89 +Subject: Test mbox message 1
\r
93 +output=$(NOTMUCH_NEW 2>&1)
\r
94 +test_expect_equal "$output" \
\r
95 +"Added 1 new message to the database."
\r
97 # This test requires that notmuch new has been run at least once.
\r
98 test_begin_subtest "Skip and report non-mail files"
\r