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 8FF86431FC0; Fri, 27 Nov 2009 19:27:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 O0BivdOFRl26; Fri, 27 Nov 2009 19:27:11 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 68A73431FAE; Fri, 27 Nov 2009 19:27:11 -0800 (PST) From: Carl Worth To: Michiel Buddingh' , notmuch@notmuchmail.org In-Reply-To: <4b0eef22.JwxdgTGElffx149F%michiel@michielbuddingh.net> References: <87fx8bygi7.fsf@linux.vnet.ibm.com> <87bpiv4t9h.fsf@yoom.home.cworth.org> <87y6lz39nd.fsf@yoom.home.cworth.org> <20091121221207.GB17268@jukie.net> <9cce5525b093b87fe74d427954ffad89@localhost> <87d43b2oif.fsf@yoom.home.cworth.org> <9bfdedddeab9c58cd45d8d448323d0fc@localhost> <87skc23327.fsf@yoom.home.cworth.org> <4b0eef22.JwxdgTGElffx149F%michiel@michielbuddingh.net> Date: Fri, 27 Nov 2009 19:26:57 -0800 Message-ID: <87ws1bjpmm.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] notmuch: Add Maildir directory name as tag name for messages X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sat, 28 Nov 2009 03:27:12 -0000 On Thu, 26 Nov 2009 22:12:02 +0100, Michiel Buddingh' wrote: > Carl Worth wrote: > I considered that approach; ideally, we could test for the presence of > all three of cur, tmp and new--but this is rather messy to do in the > current treewalk structure. Taking any one of them as proof positive of > a Maildir might lead to unpleasant surprises--it's not all that incon- > ceivable for someone to name a mail folder 'tmp'. The auto-detection is just three additional stats (at most) for each directory, right? That seems cheap enough to me. > There's another matter; Some mail stores will place (large) index files > in folder roots, i.e. one level above cur/, tmp/ and new/. Looking > at the ones dovecot (an IMAP server) uses, I can make out a from header, > a subject header, and a message-id, as plaintext in the first 100k or > so. It's not all that inconceivable that notmuch might register it as > a 'real' email, with unpleasant consequences for the index. That seems orthogonal to me. Would the dovecot index files be easy to skip with a pattern-based blacklist? > I've seen some patches fly by that add support for multiple mail > stores. Turning on Maildir support on a per-directory basis might > resolve that problem while still supporting heterogenous mail archives > to some degree. I am not convinced we can do the right thing > automatically without causing some grief to a subset of users. With sup, I had the opposite extreme compared to current notmuch. Every maildir in the hierarchy had to be configured independently. That was a lot of pain, and is precisely why notmuch started out by simply taking a single top-level directory. > Haven't tested it, but it seems you can put > > [core] > whitespace = trailing-space,space-before-tab Yes. According to the documentation of git-config, those two values are the default. But the documentation also only says that these will make "git diff" display the undesired whitespace in red, and "git apply --whitespace=error" refuse to apply. I can't find a builtin way to make "git commit" complain, or I would recommend that. > I'll be happy to implement them, although I'd like for others to chime > in on the configure-as-Maildir vs. autodetect-Maildir issue. And thanks > for your patience in working through my patch. No problem at all. I'll look forward to the next version of the patch. Consider mine as a vote for autodetection of maildir rather than configuration. -Carl