From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C7FC7431FAF for ; Thu, 13 Sep 2012 04:14:46 -0700 (PDT) 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=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 xmh3ZlRzXn2z for ; Thu, 13 Sep 2012 04:14:46 -0700 (PDT) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id ABD9E431FAE for ; Thu, 13 Sep 2012 04:14:45 -0700 (PDT) Received: by wgbdq12 with SMTP id dq12so1893760wgb.2 for ; Thu, 13 Sep 2012 04:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:in-reply-to:organization:references :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version :content-type; bh=aCse9bPdzi0PW+V5wrtdLSXobfSppI7yjsVHnp3Noto=; b=crjZyB54XtF/wIVVDZwWfvzRG9N4L0nXYG7+1l2f97SHIs8l9vZASOOUoLfGyO0plA bGPZHWNuua2WjExh+K6UZRcfnQU1bLvmuR5ijR1fFy9fAslIYpRnEQCGCyxFsfdb8inG 1/1dQkQbNqnYjGwfgyDiCTndlMBhX8u4G3N0TQHqClhFcq5SZSVx4eeysIzQE3MReS8t e924G6oD5BBy0LSGj+N72tRkG0dhOZQpyI0nD2+p4r5fXUwA+hOjy+dpqmFIpUkwxYX1 UFJ4qldvmc0FNBQObhNpi0oUKWadaNBIQayZCCB/hss4N+KWHSRUEZeVZNYLhk837vLV 5epw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:in-reply-to:organization:references :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version :content-type:x-gm-message-state; bh=aCse9bPdzi0PW+V5wrtdLSXobfSppI7yjsVHnp3Noto=; b=ioS7aKiTaODiDS/kuvBDDkj1iI2GgHS/1kH2KLk864CXWVo5fxlESl1LtDCciy+yYH FKC08mB6EmzQVYS37PBUXsKLCu0vn6ldRfZXuYKiHpLTsYtcseYOYw/847HYGxflws7E qAY9C07/HL1sKgQ74ujOuWi6wH9mzwpz6x8oPda7zCNA6DB33/tZcKAcK8tQOcc1l9nO tPnLaLlqvKP/YnErvDcz4k/StBDvPHjkAfYGKF2xH/kqNkMn40UX3v38wqUbr1O3ugO8 wn5LabROsKvmEsWEnj6g3r32fhe3EUhemuiad6cOQD5LP6vMRxpa7oa/xBBvyCcvLPRo e0bw== Received: by 10.180.106.97 with SMTP id gt1mr39742050wib.5.1347534884500; Thu, 13 Sep 2012 04:14:44 -0700 (PDT) Received: by 10.180.106.97 with SMTP id gt1mr39742026wib.5.1347534884305; Thu, 13 Sep 2012 04:14:44 -0700 (PDT) Received: from mpn-glaptop ([2620:0:105f:5:f2de:f1ff:fe35:1a72]) by mx.google.com with ESMTPS id t8sm12980553wiy.3.2012.09.13.04.14.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 04:14:43 -0700 (PDT) Sender: Michal Nazarewicz From: Michal Nazarewicz To: Jani Nikula , notmuch@notmuchmail.org, David Bremner Subject: Re: [PATCH v3 6/9] lib: add date range query support In-Reply-To: <532340d05ea748518c021048900bb83149e04e88.1347484177.git.jani@nikula.org> Organization: http://mina86.com/ References: <532340d05ea748518c021048900bb83149e04e88.1347484177.git.jani@nikula.org> User-Agent: Notmuch/0.14+22~g8bdc16b (http://notmuchmail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U4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC X-PGP: 50751FF4 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4 Date: Thu, 13 Sep 2012 13:14:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Gm-Message-State: ALoCoQkJsezYZM8s/1OJcX79ChSU/sHW/IjXIQ/8emzRIUZeRI8JoRKlsCF5qubgYhFBA2L8P19/nLsQSqaqYEI8VnuL5xbvRjZhyQG1Qh2YXz5PmNL+9s4nJHVCWMtu75EOpWvcM4+q/rTC2PDhfGFdiSkgypQ3SXMbHVCIlAszzzb0U/J1uNMt9q0PgJeAmafSFPyp9UC8 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, 13 Sep 2012 11:14:47 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Sep 12 2012, Jani Nikula wrote: > Add a custom value range processor to enable date and time searches of > the form date:since..until, where "since" and "until" are expressions > understood by the previously added date/time parser, to restrict the > results to messages within a particular time range (based on the Date: > header). > > If "since" or "until" describes date/time at an accuracy of days or > less, the values are rounded according to the accuracy, towards past > for "since" and towards future for "until". For example, > date:november..yesterday would match from the beginning of November > until the end of yesterday. Expressions such as date:today..today > means since the beginning of today until the end of today. IMO this is totally unintuitive and not how the range should work. date:foo..bar should return messages whose date >=3D foo and < bar. So for instance date:november..yesterday should return messages whose date is > 2012/11/01 00:00:00 and < 2012/09/12 00:00:00. So to get yesterdays messages one would do: date:yesterday..today. > Open-ended ranges are supported (since Xapian 1.2.1), i.e. you can > specify date:..until or date:since.. to not limit the start or end > date, respectively. > > CAVEATS: > > Xapian does not support spaces in range expressions. You can replace > the spaces with '_', or (in most cases) '-', or (in some cases) leave > the spaces out altogether. --=20 Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz = (o o) ooo +------------------ooO--(_)--Ooo-- --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJQUcAdAAoJECBgQBJQdR/0Y0IP/iiTVxK4gKetICjlZSlzMSvK jSR+phVKdHXjGsdT7vY3Jf+izF7TGUD/GNEHKiVGQRCVIjEv3TRXpnYQYQz6OzBw YKavWef5CS0YcxB9cGF89hWM9+fHruknPefn/WZkmkmipbMutPoG2jQCp8ywv19i pg4cL4vGBk9jTx7C/qKxDfgrFbzuFngRfRmPrumfaZ724MRD46r8Z2PrgN1sDh2n poH3JSU5p5JsxHIkFml4lVNR3Z2QyeGtLGYR2PCdnencdiGMqOs55QS7VO0lWjsf yk+QoGwaiUIsqXWT5qQIatL7mqEQXV5S2FV3sTygMNdsHD5slecsKcdoqA2qQBJw hz8oXPqu88H5m54bykxxWTNqwzAOR7/ouWvpZOhBac/rd64p5WPFfJ8RPEy/m0HM 69eQw30B1sk5yC9I/VIIKmk6ILP7DAR6LBXu4q4Lhm9A10kFqJaRErhfO7DZtMSv GNfYo9pN6Xf97aJjRDcR4NuXeqNKR3rBtXCUQHEcGRfljs2O3el8wC6/97YXPwL+ S61xDCh/vEhwzshb8+/FnGAZwl5t0hSfMdfhZ/UMt8/Cffc7EbT3pp6Pr9gSsVZy dwC460ur4Mn2w+URQoWsT0+uVmDGIh0PTdtpRsMRoD1G1JcnqEQB9m5PSuAUZSvw UTmRVwMZ5Q0R+6OyvhM5 =9KUh -----END PGP SIGNATURE----- --==-=-=-- --=-=-=--