From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1681A431FAF for ; Fri, 3 Feb 2012 14:40:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R-KCQMjugGN8 for ; Fri, 3 Feb 2012 14:40:14 -0800 (PST) Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU [18.9.25.12]) by olra.theworths.org (Postfix) with ESMTP id 67CB3431FAE for ; Fri, 3 Feb 2012 14:40:14 -0800 (PST) X-AuditID: 1209190c-b7fad6d000000920-91-4f2c624d9fad Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id 09.89.02336.D426C2F4; Fri, 3 Feb 2012 17:40:13 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q13MeC1h015483; Fri, 3 Feb 2012 17:40:13 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q13MeA6a018156 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 3 Feb 2012 17:40:12 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RtRme-0001eS-1R; Fri, 03 Feb 2012 17:39:08 -0500 From: Austin Clements To: Tomi Ollila , Pieter Praet , David Edmondson , David Bremner Subject: Re: [PATCH] test: add tests wrt ignoring user-specified files and directories In-Reply-To: References: <1328105573-4626-1-git-send-email-pieter@praet.org> User-Agent: Notmuch/0.11+118~g220ee2c (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Fri, 03 Feb 2012 17:39:07 -0500 Message-ID: <877h03wnhw.fsf@awakening.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT1/VN0vE3mLTG2uJGazejxb47W5gs rt+cyWzx+/UNZos3K+exOrB67Hr+l8nj8NeFLB7PVt1i9ujYd5nVY8uh98wBrFFcNimpOZll qUX6dglcGbvPr2MpWMlVcfzsQrYGxk0cXYycHBICJhLPnsxhgbDFJC7cW8/WxcjFISSwj1Hi 9Kl+JghnPaPEx3NL2SGcE0wSne93QGWWMErMWdrNDtLPJqAhsW3/ckaQhIjABEaJc5POsIEk mAW0JLZu/MAIYgsLhEm82trKDGJzChhIXJrZBGYLCUxmlHh82gLEFhWIl7gzdyVYL4uAqsS1 D8/AenmBjr1+4AUThC0ocXLmExaY+Tf+vWSawCg4C0lqFpLUAkamVYyyKblVurmJmTnFqcm6 xcmJeXmpRbqGermZJXqpKaWbGEGhzinJs4PxzUGlQ4wCHIxKPLyMWjr+QqyJZcWVuYcYJTmY lER5gxKAQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4rdSBcrwpiZVVqUX5MClpDhYlcV4VrXd+ QgLpiSWp2ampBalFMFkZDg4lCd7piUCNgkWp6akVaZk5JQhpJg5OkOE8QMM3gNTwFhck5hZn pkPkTzEqSonzbgdJCIAkMkrz4HphqegVozjQK8K8m0GqeIBpDK77FdBgJqDBDBaaIINLEhFS Ug2Mmz3euk7IiE8t+SoXOzN+8ukDJS68rTYqwkrCFr+eN7o5hZvPKd7w3eZE8vZMw8dznF/8 qGr5X6hj+2buze4/DTdFLOo+XeTYevvN5hNn5t7Y8fDeqSkaDBn/Ra7GLpd9cF57znLZPp9Z obOXR1xYFTzfO+7s3Uu73K0yGbmv3pr3PG5VSfc+fSWW4oxEQy3mouJEANXUwTQgAwAA Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 22:40:15 -0000 On Fri, 03 Feb 2012 14:14:21 +0200, Tomi Ollila wrote: > On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > > Files and directories which are specified in 'new.ignore' in the > > config file shouldn't be indexed nor reported by `notmuch new'. > > > > --- > > +1 > > tested file order with: > > $ touch ~/mail/mails/a > $ touch ~/mail/mails/d > $ touch ~/mail/mails/o > $ touch ~/mail/mails/p > $ touch ~/mail/mails/g > $ touch ~/mail/mails/z > $ touch ~/mail/mails/u > $ touch ~/mail/mails/l > > $ notmuch new > Note: Ignoring non-mail file: /home/too/mail/mails/a > Note: Ignoring non-mail file: /home/too/mail/mails/d > Note: Ignoring non-mail file: /home/too/mail/mails/g > Note: Ignoring non-mail file: /home/too/mail/mails/l > Note: Ignoring non-mail file: /home/too/mail/mails/o > Note: Ignoring non-mail file: /home/too/mail/mails/p > Note: Ignoring non-mail file: /home/too/mail/mails/u > Note: Ignoring non-mail file: /home/too/mail/mails/z > > So we can be pretty confident that files are printed > in ASCII order. This is true if the containing directory has been scanned by notmuch before (which is sufficiently true in this patch). If the containing directory is new, they're in inode order (so no guarantees).