1 Return-Path: <amthrax@drake.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 7B40A431FD8
\r
6 for <notmuch@notmuchmail.org>; Mon, 7 May 2012 15:20:49 -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 vzt9FgMq-rF2 for <notmuch@notmuchmail.org>;
\r
16 Mon, 7 May 2012 15:20:49 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 7F2BB431FBC
\r
20 for <notmuch@notmuchmail.org>; Mon, 7 May 2012 15:20:48 -0700 (PDT)
\r
21 X-AuditID: 1209190e-b7fd86d0000008b4-cf-4fa84ac00b1b
\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])
\r
23 by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 74.07.02228.0CA48AF4; Mon, 7 May 2012 18:20:48 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q47MKlio009638;
\r
27 Mon, 7 May 2012 18:20:47 -0400
\r
28 Received: from drake.mit.edu (26-4-166.dynamic.csail.mit.edu [18.26.4.166])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q47MKjsc006041
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Mon, 7 May 2012 18:20:46 -0400 (EDT)
\r
34 Received: from amthrax by drake.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amthrax@drake.mit.edu>)
\r
36 id 1SRWIP-0000JX-QZ; Mon, 07 May 2012 18:20:45 -0400
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH v2 1/2] test: Test notmuch new with a broken symlink
\r
40 Date: Mon, 7 May 2012 18:20:39 -0400
\r
41 Message-Id: <1336429240-1114-2-git-send-email-amdragon@mit.edu>
\r
42 X-Mailer: git-send-email 1.7.10
\r
43 In-Reply-To: <1336429240-1114-1-git-send-email-amdragon@mit.edu>
\r
44 References: <1336414186-15293-1-git-send-email-amdragon@mit.edu>
\r
45 <1336429240-1114-1-git-send-email-amdragon@mit.edu>
\r
46 X-Brightmail-Tracker:
\r
47 H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsUixCmqrXvAa4W/wdpvLBbXb85ktphxfheL
\r
48 A5PHs1W3mD2WHf3JGMAUxWWTkpqTWZZapG+XwJXx+d1B5oLfrBVzOq4wNzB+Z+li5OSQEDCR
\r
49 mP78AROELSZx4d56ti5GLg4hgX2MEs9fHGOEcNYzSvxq2gCVOcYk8bbhDJQzn1Fi6edfYLPY
\r
50 BDQktu1fzghiiwhIS+y8O5sVxGYW8JQ48G0aWFxYwEVi77f97CA2i4CqxIJtTcwgNq+AvcTL
\r
51 yX+gbpKXeHq/D2gBBwengIPE+0v2IGEhgTKJt5f/MU1g5F/AyLCKUTYlt0o3NzEzpzg1Wbc4
\r
52 OTEvL7VI11gvN7NELzWldBMjOJQk+XYwfj2odIhRgINRiYdX6cVyfyHWxLLiytxDjJIcTEqi
\r
53 vLbAQBTiS8pPqcxILM6ILyrNSS0+xCjBwawkwtsmBpTjTUmsrEotyodJSXOwKInzqmm98xMS
\r
54 SE8sSc1OTS1ILYLJynBwKEnwuoIMFSxKTU+tSMvMKUFIM3FwggznARpuD1LDW1yQmFucmQ6R
\r
55 P8WoKCXOKw2SEABJZJTmwfXCYv0VozjQK8K8CiBVPMA0Adf9CmgwE9Dgzc+WgQwuSURISTUw
\r
56 Svz9Y7Dz5UmTCd7X1N/mBR1iSqi4KfE2eN8k/mW39F+XZa84263lUbboyQfHtOgPec3WIjuE
\r
57 726f82zCMolkgV/CbZMfse6eviO1KztaRfeMpcn/pYIb79yWnHD5z4w5YvL7FB4xWD5wv1nt
\r
58 bd363NyvW/FritqO1pAF+YejROc0PjvxwmKSmxJLcUaioRZzUXEiAM9VBDbQAgAA
\r
59 Cc: Vladimir Marek <vlmarek@volny.cz>
\r
60 X-BeenThere: notmuch@notmuchmail.org
\r
61 X-Mailman-Version: 2.1.13
\r
63 List-Id: "Use and development of the notmuch mail system."
\r
64 <notmuch.notmuchmail.org>
\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
68 List-Post: <mailto:notmuch@notmuchmail.org>
\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
71 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
72 X-List-Received-Date: Mon, 07 May 2012 22:20:49 -0000
\r
75 test/new | 10 ++++++++++
\r
76 1 file changed, 10 insertions(+)
\r
78 diff --git a/test/new b/test/new
\r
79 index 99f9913..26253db 100755
\r
82 @@ -136,6 +136,16 @@ output=$(NOTMUCH_NEW)
\r
83 test_expect_equal "$output" "Added 1 new message to the database."
\r
86 +test_begin_subtest "Broken symlink aborts"
\r
87 +ln -s does-not-exist "${MAIL_DIR}/broken"
\r
88 +output=$(NOTMUCH_NEW 2>&1)
\r
89 +test_expect_equal "$output" \
\r
90 +"Error reading directory /run/shm/nm/tmp.new/mail/broken: No such file or directory
\r
91 +Note: A fatal error was encountered: Something went wrong trying to read or write a file
\r
93 +rm "${MAIL_DIR}/broken"
\r
96 test_begin_subtest "New two-level directory"
\r
98 generate_message [dir]=two/levels
\r