--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 1681A431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:40:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 R-KCQMjugGN8 for <notmuch@notmuchmail.org>;\r
+ Fri, 3 Feb 2012 14:40:14 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
+ [18.9.25.12])\r
+ by olra.theworths.org (Postfix) with ESMTP id 67CB3431FAE\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:40:14 -0800 (PST)\r
+X-AuditID: 1209190c-b7fad6d000000920-91-4f2c624d9fad\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+ by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id 09.89.02336.D426C2F4; Fri, 3 Feb 2012 17:40:13 -0500 (EST)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+ by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q13MeC1h015483; \r
+ Fri, 3 Feb 2012 17:40:13 -0500\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q13MeA6a018156\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Fri, 3 Feb 2012 17:40:12 -0500 (EST)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1RtRme-0001eS-1R; Fri, 03 Feb 2012 17:39:08 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, Pieter Praet <pieter@praet.org>,\r
+ David Edmondson <dme@dme.org>, David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH] test: add tests wrt ignoring user-specified files and\r
+ directories\r
+In-Reply-To: <m2ipjop10i.fsf@guru.guru-group.fi>\r
+References: <cunr4yonvn4.fsf@hotblack-desiato.hh.sledj.net>\r
+ <1328105573-4626-1-git-send-email-pieter@praet.org>\r
+ <m2ipjop10i.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.11+118~g220ee2c (http://notmuchmail.org) Emacs/23.3.1\r
+ (i486-pc-linux-gnu)\r
+Date: Fri, 03 Feb 2012 17:39:07 -0500\r
+Message-ID: <877h03wnhw.fsf@awakening.csail.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT1/VN0vE3mLTG2uJGazejxb47W5gs\r
+ rt+cyWzx+/UNZos3K+exOrB67Hr+l8nj8NeFLB7PVt1i9ujYd5nVY8uh98wBrFFcNimpOZll\r
+ qUX6dglcGbvPr2MpWMlVcfzsQrYGxk0cXYycHBICJhLPnsxhgbDFJC7cW8/WxcjFISSwj1Hi\r
+ 9Kl+JghnPaPEx3NL2SGcE0wSne93QGWWMErMWdrNDtLPJqAhsW3/ckaQhIjABEaJc5POsIEk\r
+ mAW0JLZu/MAIYgsLhEm82trKDGJzChhIXJrZBGYLCUxmlHh82gLEFhWIl7gzdyVYL4uAqsS1\r
+ D8/AenmBjr1+4AUThC0ocXLmExaY+Tf+vWSawCg4C0lqFpLUAkamVYyyKblVurmJmTnFqcm6\r
+ xcmJeXmpRbqGermZJXqpKaWbGEGhzinJs4PxzUGlQ4wCHIxKPLyMWjr+QqyJZcWVuYcYJTmY\r
+ lER5gxKAQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4rdSBcrwpiZVVqUX5MClpDhYlcV4VrXd+\r
+ QgLpiSWp2ampBalFMFkZDg4lCd7piUCNgkWp6akVaZk5JQhpJg5OkOE8QMM3gNTwFhck5hZn\r
+ pkPkTzEqSonzbgdJCIAkMkrz4HphqegVozjQK8K8m0GqeIBpDK77FdBgJqDBDBaaIINLEhFS\r
+ Ug2Mmz3euk7IiE8t+SoXOzN+8ukDJS68rTYqwkrCFr+eN7o5hZvPKd7w3eZE8vZMw8dznF/8\r
+ qGr5X6hj+2buze4/DTdFLOo+XeTYevvN5hNn5t7Y8fDeqSkaDBn/Ra7GLpd9cF57znLZPp9Z\r
+ obOXR1xYFTzfO+7s3Uu73K0yGbmv3pr3PG5VSfc+fSWW4oxEQy3mouJEANXUwTQgAwAA\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 22:40:15 -0000\r
+\r
+On Fri, 03 Feb 2012 14:14:21 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\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
+This is true if the containing directory has been scanned by notmuch\r
+before (which is sufficiently true in this patch). If the containing\r
+directory is new, they're in inode order (so no guarantees).\r