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 6D4BE431FBC for ; Tue, 26 Jan 2010 09:55:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Level: X-Spam-Status: No, score=-1.341 tagged_above=-999 required=5 tests=[AWL=-1.342, 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 x6fgzIjjHZSy for ; Tue, 26 Jan 2010 09:55:05 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 9EB39431FAE for ; Tue, 26 Jan 2010 09:55:05 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id E4D0B76021B; Tue, 26 Jan 2010 09:55:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cma-K1G-deDb; Tue, 26 Jan 2010 09:55:01 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id AA9D0B7C00E; Tue, 26 Jan 2010 09:55:01 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id A85D176021A; Tue, 26 Jan 2010 09:55:01 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 4D15611C066; Wed, 27 Jan 2010 06:55:01 +1300 (NZDT) From: Keith Packard To: Sebastian Spaeth , notmuch@notmuchmail.org In-Reply-To: <874om99jam.fsf@SSpaeth.de> References: <1264173971-11879-1-git-send-email-Sebastian@SSpaeth.de> <874om99jam.fsf@SSpaeth.de> Date: Tue, 26 Jan 2010 09:55:00 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Tue, 26 Jan 2010 17:55:06 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 26 Jan 2010 12:50:41 +0100, "Sebastian Spaeth" wrote: > On Mon, 25 Jan 2010 22:36:35 -0800, Keith Packard wro= te: > > Here's some code which further improves date parsing by allowing lots of > > date formats, including things like "today", "thisweek", ISO and US date > > formats and month names. You can separate two dates with .. to make a > > range, or you can just use the default range ("lastmonth" is everything > > From the 1st of the previous month to the 1st of the current month). > >=20 > > I think this fits nicely with your code. >=20 > It fit nicely indeed. I have just integrated your date parser into my > code and sent it as a series of 4 patches based on current cworth > master. (commits 2565fc6 and 96e11c3 will not compile on their own) 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. Also, cworth is on vacation this week, so we won't be seeing any merging to master... =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLXyx1Qp8BWwlsTdMRApKOAJ0YB5X95M7ex7+eQ/RRF2v+v9tOcgCguoaq GnF0xZshkpDO0xshMC5rnoU= =JaFi -----END PGP SIGNATURE----- --=-=-=--