Re: [PATCH] test: add tests wrt ignoring user-specified files and directories
authorTomi Ollila <tomi.ollila@iki.fi>
Fri, 3 Feb 2012 12:14:21 +0000 (14:14 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:01 +0000 (09:44 -0800)
2a/59a0730ab5fda8dd149777616ba519c4563c4d [new file with mode: 0644]

diff --git a/2a/59a0730ab5fda8dd149777616ba519c4563c4d b/2a/59a0730ab5fda8dd149777616ba519c4563c4d
new file mode 100644 (file)
index 0000000..2cffa87
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id EDC37431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 04:14:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id pE0XN0VKWhzq for <notmuch@notmuchmail.org>;\r
+       Fri,  3 Feb 2012 04:14:19 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3404B431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 04:14:19 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 3462268055; Fri,  3 Feb 2012 14:14:21 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Pieter Praet <pieter@praet.org>, David Edmondson <dme@dme.org>,\r
+       David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH] test: add tests wrt ignoring user-specified files and\r
+       directories\r
+In-Reply-To: <1328105573-4626-1-git-send-email-pieter@praet.org>\r
+References: <cunr4yonvn4.fsf@hotblack-desiato.hh.sledj.net>\r
+       <1328105573-4626-1-git-send-email-pieter@praet.org>\r
+User-Agent: Notmuch/0.11+146~geb6dc33 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Fri, 03 Feb 2012 14:14:21 +0200\r
+Message-ID: <m2ipjop10i.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 03 Feb 2012 12:14:20 -0000\r
+\r
+On Wed,  1 Feb 2012 15:12:53 +0100, Pieter Praet <pieter@praet.org> wrote:\r
+> Files and directories which are specified in 'new.ignore' in the\r
+> config file shouldn't be indexed nor reported by `notmuch new'.\r
+> \r
+> ---\r
+\r
++1 \r
+\r
+tested file order with:\r
+\r
+$ touch ~/mail/mails/a\r
+$ touch ~/mail/mails/d\r
+$ touch ~/mail/mails/o\r
+$ touch ~/mail/mails/p\r
+$ touch ~/mail/mails/g\r
+$ touch ~/mail/mails/z\r
+$ touch ~/mail/mails/u\r
+$ touch ~/mail/mails/l     \r
+\r
+$ notmuch new\r
+Note: Ignoring non-mail file: /home/too/mail/mails/a\r
+Note: Ignoring non-mail file: /home/too/mail/mails/d\r
+Note: Ignoring non-mail file: /home/too/mail/mails/g\r
+Note: Ignoring non-mail file: /home/too/mail/mails/l\r
+Note: Ignoring non-mail file: /home/too/mail/mails/o\r
+Note: Ignoring non-mail file: /home/too/mail/mails/p\r
+Note: Ignoring non-mail file: /home/too/mail/mails/u\r
+Note: Ignoring non-mail file: /home/too/mail/mails/z\r
+\r
+So we can be pretty confident that files are printed\r
+in ASCII order.\r
+\r
+Tomi\r