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 36F61431FC0 for ; Mon, 25 Jan 2010 04:22:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.313 X-Spam-Level: X-Spam-Status: No, score=-0.313 tagged_above=-999 required=5 tests=[AWL=-0.314, 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 WrqM+x-KJMhk for ; Mon, 25 Jan 2010 04:22:49 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by olra.theworths.org (Postfix) with ESMTP id 5954F431FBC for ; Mon, 25 Jan 2010 04:22:49 -0800 (PST) Received: from sspaeth.de (unknown [84.55.198.58]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 607FA7A805C; Mon, 25 Jan 2010 04:22:47 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Mon, 25 Jan 2010 13:22:44 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org In-Reply-To: <1264416634-18414-1-git-send-email-Sebastian@SSpaeth.de> References: <1264342433-15663-1-git-send-email-Sebastian@SSpaeth.de> <1264416634-18414-1-git-send-email-Sebastian@SSpaeth.de> Date: Mon, 25 Jan 2010 13:22:44 +0100 Message-ID: <87ocki5q7f.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword) 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: Mon, 25 Jan 2010 12:22:51 -0000 The patch previously sent can be considered my final attempt to a nicer date parser. In addition to some testing, I have updated the documentation to reflect the new syntax, and I have also added the keyword 'now' as a possibility. So 'date:2002..now' (all mails from 2002 until now) or 'date:now..31' (all mails that McFly sent to you between now and the 31st of this month) should all work. Note that this is not a sincere: 'since' replacement, as 2001..now won't find mails with timestamps in the future. The relevant 4 patches are in my git tree, git://github.com/spaetz/notmuch-all-feature.git then switch to branch 'dateparser': 59e9b56 remove superfluous debug statements from date parsing 4bdb0b0 allow 'now' as keyword for now cf6c500 Adapt documentation to new date: syntax d8d3d0b Make the date parser nicer. This is v3 and considered to be final (but the documentation). Thanks, Sebastian