1 Return-Path: <pieter@praet.org>
\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 5D25D431FAF
\r
6 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:33 -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 C53q9nGIOUNP for <notmuch@notmuchmail.org>;
\r
16 Sun, 19 Feb 2012 12:50:32 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id B39A1431FC3
\r
21 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:29 -0800 (PST)
\r
22 Received: by mail-wi0-f181.google.com with SMTP id hi8so3110543wib.26
\r
23 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:29 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.216.135.169 as permitted sender) client-ip=10.216.135.169;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.216.135.169 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.216.135.169])
\r
31 by 10.216.135.169 with SMTP id u41mr3153628wei.13.1329684629358
\r
32 (num_hops = 1); Sun, 19 Feb 2012 12:50:29 -0800 (PST)
\r
33 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
34 d=google.com; s=gamma;
\r
35 h=mime-version:from:to:cc:subject:date:message-id:x-mailer
\r
36 :in-reply-to:references:x-gm-message-state;
\r
37 bh=YfjAm4bbHjAsdJpXBKOPpJ5oIrM1ZW5yVW+iK1n3nZ0=;
\r
38 b=0Nga5HBEwylicvPm11FcFoW5Xnu9LtFuXvxc/QSy0yicJ4DGx5KjBFwQl55viipjI7
\r
39 w1wXxQtxzvf8l1pqVPnfMfZ2wFcNyjjahkpp7kXpdhXzBJKkn/OTA705RTGAOtS+JB1t
\r
40 gnn765SaBoWSbXO8a0a3qebNP52NN8mPBU4Wk=
\r
42 Received: by 10.216.135.169 with SMTP id u41mr2632482wei.13.1329684629274;
\r
43 Sun, 19 Feb 2012 12:50:29 -0800 (PST)
\r
44 Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be.
\r
46 by mx.google.com with ESMTPS id dr5sm29364109wib.0.2012.02.19.12.50.28
\r
47 (version=TLSv1/SSLv3 cipher=OTHER);
\r
48 Sun, 19 Feb 2012 12:50:28 -0800 (PST)
\r
49 From: Pieter Praet <pieter@praet.org>
\r
50 To: David Bremner <david@tethera.net>,
\r
51 Tomi Ollila <tomi.ollila@iki.fi>
\r
52 Subject: [PATCH 6/6] test: another test wrt ignoring user-specified files and
\r
54 Date: Sun, 19 Feb 2012 21:47:56 +0100
\r
55 Message-Id: <1329684476-9596-7-git-send-email-pieter@praet.org>
\r
56 X-Mailer: git-send-email 1.7.8.1
\r
57 In-Reply-To: <1329684476-9596-1-git-send-email-pieter@praet.org>
\r
58 References: <8739a93beq.fsf@zancas.localnet>
\r
59 <1329684476-9596-1-git-send-email-pieter@praet.org>
\r
61 ALoCoQk9YDfr08QI2xuxBC66tW6g1HJ5DkcVrjc1gAez3JysjzCwd8y/KbpktSPlsdFjhEHykFha
\r
62 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
63 X-BeenThere: notmuch@notmuchmail.org
\r
64 X-Mailman-Version: 2.1.13
\r
66 List-Id: "Use and development of the notmuch mail system."
\r
67 <notmuch.notmuchmail.org>
\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
71 List-Post: <mailto:notmuch@notmuchmail.org>
\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
75 X-List-Received-Date: Sun, 19 Feb 2012 20:50:33 -0000
\r
77 Demonstrates that *every* file/directory which matches one of the values
\r
78 in 'new.ignore' will be ignored, independent of its depth/location in
\r
81 test/new | 19 +++++++++++++++++++
\r
82 1 files changed, 19 insertions(+), 0 deletions(-)
\r
84 diff --git a/test/new b/test/new
\r
85 index 79a6c97..a7b7330 100755
\r
88 @@ -173,5 +173,24 @@ touch "${MAIL_DIR}"/.git # change .git's mtime for notmuch new to rescan.
\r
89 output=$(NOTMUCH_NEW 2>&1)
\r
90 test_expect_equal "$output" "Added 1 new message to the database."
\r
92 +test_begin_subtest "Ignore files and directories specified in new.ignore (multiple occurrences)"
\r
93 +notmuch config set new.ignore .git ignored_file .ignored_hidden_file
\r
94 +touch "${MAIL_DIR}"/.git # change .git's mtime for notmuch new to rescan.
\r
95 +mkdir -p "${MAIL_DIR}"/one/two/three/.git
\r
96 +notmuch new > /dev/null # ensure that files/folders will be printed in ASCII order.
\r
97 +touch "${MAIL_DIR}"/{one,one/two,one/two/three}/ignored_file
\r
98 +output=$(NOTMUCH_NEW --debug 2>&1)
\r
99 +test_expect_equal "$output" \
\r
100 +"(D) add_files_recursive, pass 1: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/.git
\r
101 +(D) add_files_recursive, pass 1: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/one/two/three/.git
\r
102 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/one/two/three/.git
\r
103 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/one/two/three/ignored_file
\r
104 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/one/two/ignored_file
\r
105 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/one/ignored_file
\r
106 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/.git
\r
107 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/.ignored_hidden_file
\r
108 +(D) add_files_recursive, pass 2: explicitly ignoring /dev/shm/notmuch/tmp.new/mail/ignored_file
\r