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 395F2431E64
\r
6 for <notmuch@notmuchmail.org>; Thu, 24 May 2012 12:32:09 -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 xKJqv7vcIAEc for <notmuch@notmuchmail.org>;
\r
16 Thu, 24 May 2012 12:32:08 -0700 (PDT)
\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 99FB2431FBD
\r
20 for <notmuch@notmuchmail.org>; Thu, 24 May 2012 12:32:08 -0700 (PDT)
\r
21 X-AuditID: 12074425-b7f966d0000008b6-20-4fbe8cb7aa09
\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])
\r
23 by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id B2.F1.02230.7BC8EBF4; Thu, 24 May 2012 15:32:07 -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 q4OJW7bY025150;
\r
27 Thu, 24 May 2012 15:32:07 -0400
\r
28 Received: from drake.mit.edu (26-4-163.dynamic.csail.mit.edu [18.26.4.163])
\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 q4OJW5kI014459
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Thu, 24 May 2012 15:32:06 -0400 (EDT)
\r
34 Received: from amthrax by drake.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1SXdlT-0003RW-TC; Thu, 24 May 2012 15:32:03 -0400
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH v3 1/4] test: Test notmuch new with a broken symlink
\r
40 Date: Thu, 24 May 2012 15:31:59 -0400
\r
41 Message-Id: <1337887922-13163-2-git-send-email-amdragon@mit.edu>
\r
42 X-Mailer: git-send-email 1.7.10
\r
43 In-Reply-To: <1337887922-13163-1-git-send-email-amdragon@mit.edu>
\r
44 References: <1336429240-1114-1-git-send-email-amdragon@mit.edu>
\r
45 <1337887922-13163-1-git-send-email-amdragon@mit.edu>
\r
46 X-Brightmail-Tracker:
\r
47 H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixCmqrbu9Z5+/waaPJhbXb85kdmD0eLbq
\r
48 FnMAYxSXTUpqTmZZapG+XQJXxumN/ewF71gr+t7vZGtgfMXSxcjJISFgIjH1yDx2CFtM4sK9
\r
49 9WxdjFwcQgL7GCW2/LzLCOFsYJR4uHkqK4RznEli97WPrCAtQgKzGCU+tuuA2GwCGhLb9i9n
\r
50 BLFFBKQldt6dDVTDwcEsoCbxp0sFJCws4CLRsu0qE4jNIqAqsXBtPzOIzSvgILHt2V5miCvk
\r
51 JZ7e72MDsTkFHCUuPJnMBLGqTOL4411MExj5FzAyrGKUTcmt0s1NzMwpTk3WLU5OzMtLLdK1
\r
52 0MvNLNFLTSndxAgKGnYX1R2MEw4pHWIU4GBU4uFlit7nL8SaWFZcmXuIUZKDSUmUl68bKMSX
\r
53 lJ9SmZFYnBFfVJqTWnyIUYKDWUmEVzASKMebklhZlVqUD5OS5mBREuddp7nbX0ggPbEkNTs1
\r
54 tSC1CCYrw8GhJMFrA4wOIcGi1PTUirTMnBKENBMHJ8hwHqDh+0AW8xYXJOYWZ6ZD5E8xKkqJ
\r
55 87qBNAuAJDJK8+B6YVH9ilEc6BVhXguQKh5gQoDrfgU0mAlo8JbHe0EGlyQipKQaGNeH9wX6
\r
56 X2N3VjwiWd32xWRP5DZrz5+574U4f6o8UYmONdA/od4gGzvz+5E6TmbV5zHb8zqczU8drP15
\r
57 lVm2Oflvx3aev261K1RPvCzLL18f6B51eVZe33L5r3eyptzSiLO0Ll3pq3v1w07zZb9fXDYJ
\r
58 53j+WU4ldK6D6JzLp6dzzdcUV1GLVWIpzkg01GIuKk4EAEZYjcLFAgAA
\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: Thu, 24 May 2012 19:32:09 -0000
\r
74 test/new | 10 ++++++++++
\r
75 1 file changed, 10 insertions(+)
\r
77 diff --git a/test/new b/test/new
\r
78 index 99f9913..a7bc146 100755
\r
81 @@ -136,6 +136,16 @@ output=$(NOTMUCH_NEW)
\r
82 test_expect_equal "$output" "Added 1 new message to the database."
\r
85 +test_begin_subtest "Broken symlink aborts"
\r
86 +ln -s does-not-exist "${MAIL_DIR}/broken"
\r
87 +output=$(NOTMUCH_NEW 2>&1)
\r
88 +test_expect_equal "$output" \
\r
89 +"Error reading directory ${MAIL_DIR}/broken: No such file or directory
\r
90 +Note: A fatal error was encountered: Something went wrong trying to read or write a file
\r
92 +rm "${MAIL_DIR}/broken"
\r
95 test_begin_subtest "New two-level directory"
\r
97 generate_message [dir]=two/levels
\r