1 Return-Path: <ethan.glasser.camp@gmail.com>
\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 39DF6431FAF
\r
6 for <notmuch@notmuchmail.org>; Fri, 12 Oct 2012 12:33:06 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id c7MamY-U+sGQ for <notmuch@notmuchmail.org>;
\r
17 Fri, 12 Oct 2012 12:33:05 -0700 (PDT)
\r
18 Received: from mail-qa0-f53.google.com (mail-qa0-f53.google.com
\r
19 [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 8B5B8431FAE
\r
22 for <notmuch@notmuchmail.org>; Fri, 12 Oct 2012 12:33:05 -0700 (PDT)
\r
23 Received: by mail-qa0-f53.google.com with SMTP id s11so128327qaa.5
\r
24 for <notmuch@notmuchmail.org>; Fri, 12 Oct 2012 12:33:04 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=c2fJdbyc2jGvijfi07KBncel1UkTHtNk1BlqcDQnr3o=;
\r
28 b=OT60R7mB8NTlbSy/Yw1+/DpQnX5/dkdTESuDmES+Or//V6UU09mmAcFEjD5Y3WQhEg
\r
29 Q9JTZZ9vmBbxSDVd9GkLzMuCGer1T6Y6KLvbfkziavGHiZFErD6U2r7QTsEH1h9NjiJ+
\r
30 3UCWv9GFeNieBUor1PWXiSkVZ43hYXj0nqY+rx1XBg3cVqUazpCwcLH7S8yHMfXeS7cO
\r
31 ieQLwVF74acTsVfuFzSkpHvXZ9KWOqOzacXNTUWjMcQNQ7hcwZf9ECPL/TA2MH4vf0Ah
\r
32 Xqe93BUmy2U3GAYNP+LfdxTQ3yx1V0sbD+gNg50d4+uM6BLPa8wUTDHI+xbCgAD8BGsx
\r
34 Received: by 10.49.104.129 with SMTP id ge1mr11818031qeb.62.1350070384878;
\r
35 Fri, 12 Oct 2012 12:33:04 -0700 (PDT)
\r
36 Received: from smtp.gmail.com (p70-80.acedsl.com. [66.114.70.80])
\r
37 by mx.google.com with ESMTPS id o10sm7991810qaj.14.2012.10.12.12.33.01
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Fri, 12 Oct 2012 12:33:03 -0700 (PDT)
\r
40 From: Ethan Glasser-Camp <ethan.glasser.camp@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH] test: another test wrt ignoring user-specified files and
\r
44 Date: Fri, 12 Oct 2012 15:32:38 -0400
\r
45 Message-Id: <1350070358-28445-1-git-send-email-ethan@betacantrips.com>
\r
46 X-Mailer: git-send-email 1.7.9.5
\r
47 In-Reply-To: <87d326dat6.fsf@zancas.localnet>
\r
48 References: <87d326dat6.fsf@zancas.localnet>
\r
49 Cc: Ethan Glasser-Camp <ethan@betacantrips.com>,
\r
50 Pieter Praet <pieter@praet.org>
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Fri, 12 Oct 2012 19:33:06 -0000
\r
65 From: Pieter Praet <pieter@praet.org>
\r
67 Demonstrates that *every* file/directory which matches one of the values
\r
68 in 'new.ignore' will be ignored, independent of its depth/location in
\r
71 Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
\r
73 This is the trivial modification of Pieter's patch that makes it work
\r
74 no matter where your test directory is.
\r
76 test/new | 19 +++++++++++++++++++
\r
77 1 file changed, 19 insertions(+)
\r
79 diff --git a/test/new b/test/new
\r
80 index cab7c01..cc2af72 100755
\r
83 @@ -183,5 +183,24 @@ touch "${MAIL_DIR}"/.git # change .git's mtime for notmuch new to rescan.
\r
84 output=$(NOTMUCH_NEW 2>&1)
\r
85 test_expect_equal "$output" "Added 1 new message to the database."
\r
87 +test_begin_subtest "Ignore files and directories specified in new.ignore (multiple occurrences)"
\r
88 +notmuch config set new.ignore .git ignored_file .ignored_hidden_file
\r
89 +touch "${MAIL_DIR}"/.git # change .git's mtime for notmuch new to rescan.
\r
90 +mkdir -p "${MAIL_DIR}"/one/two/three/.git
\r
91 +notmuch new > /dev/null # ensure that files/folders will be printed in ASCII order.
\r
92 +touch "${MAIL_DIR}"/{one,one/two,one/two/three}/ignored_file
\r
93 +output=$(NOTMUCH_NEW --debug 2>&1)
\r
94 +test_expect_equal "$output" \
\r
95 +"(D) add_files_recursive, pass 1: explicitly ignoring ${MAIL_DIR}/.git
\r
96 +(D) add_files_recursive, pass 1: explicitly ignoring ${MAIL_DIR}/one/two/three/.git
\r
97 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/one/two/three/.git
\r
98 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/one/two/three/ignored_file
\r
99 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/one/two/ignored_file
\r
100 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/one/ignored_file
\r
101 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/.git
\r
102 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/.ignored_hidden_file
\r
103 +(D) add_files_recursive, pass 2: explicitly ignoring ${MAIL_DIR}/ignored_file
\r