From 2a1b6554eb52858bdb8cf0e8a68b1d4864c9cbd8 Mon Sep 17 00:00:00 2001 From: Gaute Hope Date: Sun, 19 Apr 2015 08:39:38 +0000 Subject: [PATCH] Re: [RFC] lib: add support for date:..! to mean date:.. --- 55/f3413c2fc3f455808e833d4d1f613a8a7d66fe | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 55/f3413c2fc3f455808e833d4d1f613a8a7d66fe diff --git a/55/f3413c2fc3f455808e833d4d1f613a8a7d66fe b/55/f3413c2fc3f455808e833d4d1f613a8a7d66fe new file mode 100644 index 000000000..9c707d06b --- /dev/null +++ b/55/f3413c2fc3f455808e833d4d1f613a8a7d66fe @@ -0,0 +1,101 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 3D11B6DE0C1E + for ; Sun, 19 Apr 2015 01:39:51 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.132 +X-Spam-Level: +X-Spam-Status: No, score=0.132 tagged_above=-999 required=5 tests=[AWL=0.852, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id rFANH3VgGo8z for ; + Sun, 19 Apr 2015 01:39:49 -0700 (PDT) +Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com + [209.85.217.173]) + by arlo.cworth.org (Postfix) with ESMTPS id B58616DE0350 + for ; Sun, 19 Apr 2015 01:39:48 -0700 (PDT) +Received: by lbcga7 with SMTP id ga7so110534061lbc.1 + for ; Sun, 19 Apr 2015 01:39:46 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:date:from:subject:to:references:in-reply-to + :user-agent:message-id:mime-version:content-type + :content-transfer-encoding; + bh=dYrxokUq8mlf32B+sqc4kOTslY96qHkMZJMhq8SiHaQ=; + b=ck8xg1/lWKAorV8tQ2c1oX9HpFV/B1KkdklA8dCcAzNDU4eLRyKlPtBiuvpRly40O0 + CGnTn8nWzxE4PCeOaq8WrW2iJEsE978huXacMuqLYsUvTxAaZcFW0kDIv3FYbFlXakUQ + KveekAY/0SSh/TwJb7T61LIC9bJCAVeS0kOt3yoiewcNZRRfpmXGxf+Uc7Umcr5w3jpj + g1XJl5XLeQDqYl7wV4kd4IzFCQCIrzL7BPx6oTft/k462w3kB81ru1xp+R0mQfgYOQYO + cChgMgDjrDf6Us2AZ+/jwcZQtAvzHn1ee0RUwVy6e0Funy3+dPT15CIezjhRvqzDUQiV + 4iww== +X-Gm-Message-State: + ALoCoQlSozyYuod0qDRwU6bxo0fzVSqJ/zQrncwSfMljWdGtSh54wjvDYjvL/P8Q/LznF9uzbSKm +X-Received: by 10.152.8.17 with SMTP id n17mr10935025laa.63.1429432785129; + Sun, 19 Apr 2015 01:39:45 -0700 (PDT) +Received: from localhost (c7579BF51.dhcp.as2116.net. [81.191.121.117]) + by mx.google.com with ESMTPSA id ot6sm3546417lbb.39.2015.04.19.01.39.42 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sun, 19 Apr 2015 01:39:43 -0700 (PDT) +Date: Sun, 19 Apr 2015 08:39:38 +0000 +From: Gaute Hope +Subject: Re: [RFC] lib: add support for date:..! to mean + date:.. +To: Mark Walters , Jani Nikula , + notmuch@notmuchmail.org +References: <1425732959-2282-1-git-send-email-jani@nikula.org> + <87a8y6fuqw.fsf@qmul.ac.uk> +In-Reply-To: <87a8y6fuqw.fsf@qmul.ac.uk> +User-Agent: astroid/vv0.2-30-gd7197a8b (https://github.com/gauteh/astroid) +Message-Id: <1429432663-astroid-2-31s581p1zi-1230@strange> +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8; format=flowed +Content-Transfer-Encoding: quoted-printable +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Sun, 19 Apr 2015 08:39:51 -0000 + +Excerpts from Mark Walters's message of April 17, 2015 20:57: +>=20 +> Hi +>=20 +> On Sat, 07 Mar 2015, Jani Nikula wrote: +>> Up to debate: +>> +>> 1) Is something like this useful at all as an intermediate step before +>> we can have support for date:? (This can be done with a future +>> version of Xapian, or with a custom query query parser.) +>=20 +> This looks good to me. Yes it may not be needed in the future but the +> patch is very small. It passes all tests. +1 from me. +>=20 +>> 2) If yes, are there better alternatives to "!" as the end point? (Or +>> should the special case be the start point?) Also "@" and "same" have +>> been suggested. Examples: date:yesterday..! date:today..@ +>> date:@..monday date:january..same. +>=20 +> I would be happy with any of these. + +I am probably missing something, but why do you need the end +point? + + date:2015-04-16 mean date:2015-04-16..2015-04-16? + date: -> date:.. + +- gaute + += -- 2.26.2