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 C87B5431FBC for ; Wed, 27 Jan 2010 01:15:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.404 X-Spam-Level: X-Spam-Status: No, score=-0.404 tagged_above=-999 required=5 tests=[AWL=-0.405, BAYES_50=0.001] 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 ZIeV0txg3RgA for ; Wed, 27 Jan 2010 01:15:51 -0800 (PST) Received: from homiemail-a25.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by olra.theworths.org (Postfix) with ESMTP id E9A39431FAE for ; Wed, 27 Jan 2010 01:15:50 -0800 (PST) Received: from sspaeth.de (unknown [84.55.198.58]) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPA id 11C77678063; Wed, 27 Jan 2010 01:15:48 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Wed, 27 Jan 2010 10:15:46 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org In-Reply-To: References: <1264173971-11879-1-git-send-email-Sebastian@SSpaeth.de> <874om99jam.fsf@SSpaeth.de> Date: Wed, 27 Jan 2010 10:15:46 +0100 Message-ID: <87eilbewn1.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make the date parser nicer 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, 27 Jan 2010 09:15:51 -0000 On Tue, 26 Jan 2010 09:55:00 -0800, Keith Packard wrote: > Very cool. Oh, if you've got commits that don't compile on their own, > you should squash them together (or fix it in some other way). Makes > bisecting easier in the future. Makes sense. I am still quite new to git, so excuse those beginner's lapses. Perhaps Carl could squash commits ec3c79a and 2565fc6 when (if?) pulling, that would make every step compile IMHO. > Also, cworth is on vacation this week, so we won't be seeing any > merging to master... No hurry :-). cworth will have to do quite some catching up when he returns. The one "disadvantage" my integration has over your original approach, is that we now always require "date:XXX..YYY". A 'date:lastmonth' won't work, it will need to be "date:lastmonth..today". The reason is that xapian only seems to invoke the RangeParser when something of the format 'A..B' is passed as a parameter. So while we could get "date:..2005" to work, "date:2005.." is not passed to the RangeParser handler, it seems. We could ditch the "date:" prefix, but imho it is more consistent with the other keywords to use it. I have no strong feelings about this. It also still has the same limitation, in that it will not find emails with a future timestamp (I use date:lastweek..5000 to get all mails with a future stamp). Sebastian