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 518DB429E48 for ; Thu, 16 Feb 2012 11:39:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 AZCt2PpXyFVD for ; Thu, 16 Feb 2012 11:39:11 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 83E2E429E21 for ; Thu, 16 Feb 2012 11:39:11 -0800 (PST) Received: by eeke51 with SMTP id e51so1408278eek.26 for ; Thu, 16 Feb 2012 11:39:08 -0800 (PST) Received: by 10.112.84.170 with SMTP id a10mr1501988lbz.22.1329421148739; Thu, 16 Feb 2012 11:39:08 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi. [84.248.80.253]) by mx.google.com with ESMTPS id fl2sm8804609lbb.4.2012.02.16.11.39.06 (version=SSLv3 cipher=OTHER); Thu, 16 Feb 2012 11:39:07 -0800 (PST) From: Jani Nikula To: Philippe LeCavalier , notmuch@notmuchmail.org Subject: Re: search by date range In-Reply-To: <87ehtu7j9z.fsf@plc.plecavalier.com> References: <87ehtu7j9z.fsf@plc.plecavalier.com> User-Agent: Notmuch/0.11.1+184~g8bc41ed (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Thu, 16 Feb 2012 21:39:04 +0200 Message-ID: <87k43m6013.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQmWrCD5CdsSHuE8xWhqcUyFo0vI9BlO0RBwN5XGT1UvoodYLOEHAGJCoEGxj1vhq4seOdQg 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: Thu, 16 Feb 2012 19:39:12 -0000 On Thu, 16 Feb 2012 12:58:00 -0500, Philippe LeCavalier wrote: > I really like searching my inde by date and I came across a post that I > can't seems to find for the life of me regarding the functionality of > doing such a thing. I'll I'm left with is this[1] and I can't figure out > what the heck it is. I do know that what it does do is limit mail from > two weeks back to present. I suppose the omition at .. implies present > but what the number represent and how to I play with that? Hi Philippe - Out of the box you have the date search syntax described in 'man notmuch-search-terms', i.e. specifying a date range in terms of timestamps. Not very user friendly, but can be helped a little by using date(1) to produce the timestamps. See the man page. Quite some time ago I posted patches to add gnulib date search, but the gnulib semantics, while compatible with other GNU programs, are a bit awkward for the needs of notmuch. Plus it's plenty of code. See id:"cover.1312964528.git.jani@nikula.org" for the patches (they may not apply anymore though). Finally, I've been working on adding support for a decent date range search. It still needs some polish and tests, but seeing the demand, perhaps I should just post the patches and see what happens. BR, Jani.