Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 03317431FBF for ; Tue, 23 Feb 2010 13:32:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.414 X-Spam-Level: X-Spam-Status: No, score=-0.414 tagged_above=-999 required=5 tests=[AWL=-0.229, BAYES_40=-0.185] autolearn=ham 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 jEwZ8qzWbEgQ for ; Tue, 23 Feb 2010 13:32:01 -0800 (PST) Received: from po8.org (po8.org [69.168.48.167]) by olra.theworths.org (Postfix) with ESMTP id 36C76431FBC for ; Tue, 23 Feb 2010 13:32:01 -0800 (PST) Received: from po8.org ([127.0.0.1]) by po8.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk2MF-0007RY-IT; Tue, 23 Feb 2010 13:31:58 -0800 To: Stewart Smith In-reply-to: <20100223061542.GR17878@flamingspork.com> References: <20100223061542.GR17878@flamingspork.com> Comments: In-reply-to Stewart Smith message dated "Tue, 23 Feb 2010 17:15:42 +1100." Date: Tue, 23 Feb 2010 13:31:55 -0800 From: Bart Massey Message-Id: Cc: Notmuch Mail Subject: Re: [notmuch] [PATCH] Added mail directory filename pattern support. 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: Tue, 23 Feb 2010 21:32:02 -0000 In message <20100223061542.GR17878@flamingspork.com> you wrote: > On Mon, Feb 22, 2010 at 12:07:31PM -0800, Bart Massey wrote: > > Typically, the filenames in a mail directory that actually > > contain mail obey some specific format. For example, in my > > MH email directory, all mail filenames consist only of > > digits. > > > > This patch adds support for a config file variable > > "filename_pattern" which maybe set to a regex used to filter > > only valid mail filenames when scanning. Effective use of > > filename_pattern cuts down on the noise from notmuch, and > > may speed it up in some cases. > > What about the other way around? > > e.g. if anybody has ever pointed Evolution at a Maildir, you get a > bunch of Maildir-name.ev-summary and .ev-summary-meta and .ibex.index > and whatever. > > A default list of ignored patterns would be pretty easy to come up with. I'm not understanding your use case? For the most common cases, Maildir and MH, setting the appropriate filename_pattern will ignore whatever garbage is lying around the tree and just look at the mail messages. Maybe my documentation is confusing? By "filter only valid mail filenames" I mean "accept only valid mail filenames", not "filter out only valid mail filenames". :-) Thanks much for any clarification you can provide. Bart Massey bart@cs.pdx.edu