From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29016431FC0 for ; Sat, 24 Nov 2012 22:16:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sckN-XGgHgIM for ; Sat, 24 Nov 2012 22:16:23 -0800 (PST) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id DFC1D431FC9 for ; Sat, 24 Nov 2012 22:16:15 -0800 (PST) X-AuditID: 12074425-b7fcc6d00000091f-64-50b1b7aff484 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 59.BB.02335.FA7B1B05; Sun, 25 Nov 2012 01:16:15 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qAP6G575028264; Sun, 25 Nov 2012 01:16:05 -0500 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qAP6G3j3006917 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 25 Nov 2012 01:16:04 -0500 (EST) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1TcVVb-0008HM-7x; Sun, 25 Nov 2012 01:16:03 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 1/3] test: Test notmuch new for single-message mbox Date: Sun, 25 Nov 2012 01:15:59 -0500 Message-Id: <1353824161-31717-1-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsUixG6nort++8YAg+PLdSxutHYzWly/OZPZ gcnj2apbzB5bDr1nDmCK4rJJSc3JLEst0rdL4Mq4NWcmW8FM9opjm+axNDD+Zu1i5OCQEDCR uL49v4uRE8gUk7hwbz1bFyMXh5DAPkaJ3hdvmSCcDYwSl15sYoRwHjFJnJ13mBGkRUhgLqPE ho0qIDabgIbEtv3LweIiAtISO+/OZgWxmQUsJa5+bWcCsYUFnCUedk5gAbFZBFQlOi7uYgex eQUcJBZ9+s4GcYaiRPezCWwTGHkXMDKsYpRNya3SzU3MzClOTdYtTk7My0st0rXQy80s0UtN Kd3ECA4MF9UdjBMOKR1iFOBgVOLhvZG4MUCINbGsuDL3EKMkB5OSKO/UzUAhvqT8lMqMxOKM +KLSnNTiQ4wSHMxKIrwH1gLleFMSK6tSi/JhUtIcLErivDdSbvoLCaQnlqRmp6YWpBbBZGU4 OJQkeLdvBWoULEpNT61Iy8wpQUgzcXCCDOcBGi69HWR4cUFibnFmOkT+FKOilDjvn21ACQGQ REZpHlwvLHJfMYoDvSLMKwjSzgOMerjuV0CDmYAGP529DmRwSSJCSqqBsbCmuO0Ma9iyHbcP HqrMFH9/95PFHcE7/rJmMW5d82oErGNeamiLixSmMTz0STz7o1fIZMHhHO6um+1bnEwv7ToX If6AW+G2yRqb6ydj1IQirp/T3vpIR/Gq6jGxi51xD3Ibl8U8NdmRdqbyV5yb4bptTuXBd7nV FxzlUeP1YgxVDj++8NdeJZbijERDLeai4kQA/SMqsLcCAAA= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 06:16:24 -0000 We support this for historical reasons. --- test/new | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/new b/test/new index 587aa11..43d56e4 100755 --- a/test/new +++ b/test/new @@ -163,6 +163,19 @@ rm -rf "${MAIL_DIR}"/two output=$(NOTMUCH_NEW) test_expect_equal "$output" "No new mail. Removed 3 messages." +test_begin_subtest "Support single-message mbox" +cat > "${MAIL_DIR}"/mbox_file1 < +To: Notmuch Test Suite +Subject: Test mbox message 1 + +Body. +EOF +output=$(NOTMUCH_NEW 2>&1) +test_expect_equal "$output" \ +"Added 1 new message to the database." + # This test requires that notmuch new has been run at least once. test_begin_subtest "Skip and report non-mail files" generate_message -- 1.7.10.4