Re: search by date range
authorJani Nikula <jani@nikula.org>
Thu, 16 Feb 2012 19:39:04 +0000 (21:39 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:36 +0000 (09:44 -0800)
f8/e9d989a2aad59f5ea0fee67540fa96d101a155 [new file with mode: 0644]

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