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 B53F4431E82 for ; Wed, 13 Nov 2013 12:14:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 tblr+nD2T5XG for ; Wed, 13 Nov 2013 12:14:24 -0800 (PST) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 38553431FD0 for ; Wed, 13 Nov 2013 12:14:24 -0800 (PST) Received: from dhcp-077-248-225-117.chello.nl ([77.248.225.117] helo=laptop) by merlin.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1VggpT-0004Jx-OB; Wed, 13 Nov 2013 20:14:23 +0000 Received: by laptop (Postfix, from userid 1000) id D1476103E6A33; Wed, 13 Nov 2013 21:14:21 +0100 (CET) Date: Wed, 13 Nov 2013 21:14:21 +0100 From: Peter Zijlstra To: Austin Clements Subject: Re: [PATCH] notmuch: Add "maildir:" search option Message-ID: <20131113201421.GB5364@laptop.programming.kicks-ass.net> References: <20131112155637.GA16796@laptop.programming.kicks-ass.net> <87mwl94dte.fsf@awakening.csail.mit.edu> <87k3gd4dfb.fsf@awakening.csail.mit.edu> <20131113200852.GG16796@laptop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131113200852.GG16796@laptop.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2012-12-30) Cc: notmuch@notmuchmail.org 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: Wed, 13 Nov 2013 20:14:30 -0000 On Wed, Nov 13, 2013 at 09:08:52PM +0100, Peter Zijlstra wrote: > + if (i >= 3) { > + /* Consume trailing maildir directory entries */ > + if (STRNCMP_LITERAL (maildir, "cur") == 0 || > + STRNCMP_LITERAL (maildir, "new") == 0) maildir + i - 3 obviously..