From 5fe8e174308577c5ae107c36f628162a6e7127a0 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Wed, 13 Nov 2013 21:14:21 +0100 Subject: [PATCH] Re: [PATCH] notmuch: Add "maildir:" search option --- d9/2e49aace1cd41d9472e22f6b92098b5547ccea | 66 +++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 d9/2e49aace1cd41d9472e22f6b92098b5547ccea diff --git a/d9/2e49aace1cd41d9472e22f6b92098b5547ccea b/d9/2e49aace1cd41d9472e22f6b92098b5547ccea new file mode 100644 index 000000000..d13991b18 --- /dev/null +++ b/d9/2e49aace1cd41d9472e22f6b92098b5547ccea @@ -0,0 +1,66 @@ +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.. + + -- 2.26.2