From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 109946DE1120 for ; Fri, 19 Apr 2019 09:26:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.026 X-Spam-Level: X-Spam-Status: No, score=-0.026 tagged_above=-999 required=5 tests=[AWL=-0.025, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pd7WeC2iutHu for ; Fri, 19 Apr 2019 09:26:03 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E9D526DE0F6E for ; Fri, 19 Apr 2019 09:26:02 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1hHWKt-0006XR-Dg; Fri, 19 Apr 2019 12:25:59 -0400 Received: (nullmailer pid 24753 invoked by uid 1000); Fri, 19 Apr 2019 16:25:57 -0000 From: David Bremner To: Ralph Seichter , notmuch@notmuchmail.org Subject: Re: Unexpected output of "notmuch new --quiet" In-Reply-To: <87zhomurs5.fsf@ra.horus-it.com> References: <87imvc5pvg.fsf@ra.horus-it.com> <87bm14gqib.fsf@tethera.net> <87y3471ml9.fsf@ra.horus-it.com> <87d0ljfnlz.fsf@tethera.net> <87ftqfctf0.fsf@ra.horus-it.com> <877ebqg5l6.fsf@tethera.net> <8736mew71i.fsf@ra.horus-it.com> <87zhomurs5.fsf@ra.horus-it.com> Date: Fri, 19 Apr 2019 13:25:57 -0300 Message-ID: <871s1yezca.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 19 Apr 2019 16:26:04 -0000 Ralph Seichter writes: > * Ralph Seichter: > >> ignore=//dovecot[[:punct:]]/;/(maildirfolder|subscriptions)$/; > > Odd. I am currently adding this entry to some users' config files, and > the expression //dovecot[[:punct:]]/ does not seem to work in all > cases. Based on notmuch-search-terms(7) I assumed that Notmuch used > POSIX.2 regular expressions, does it not? I think I can duplicate the problem you see, and it's not about POSIX.2, but rather that the paths are stored in the database (and match) relative to the top level Maildir. So the leading '/' isn't there to match for top level files. This version seems to work for me. ignore=/(^|/)dovecot[-.]/;/(maildirfolder|subscriptions)$/; Maybe regexp experts can suggest the canonical way to do this; potentially we could add another example to the docs.