Re: [RFC] lib: add support for date:<query>..! to mean date:<query>..<query>
authorGaute Hope <eg@gaute.vetsj.com>
Sun, 19 Apr 2015 08:39:38 +0000 (08:39 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:50 +0000 (14:48 -0700)
55/f3413c2fc3f455808e833d4d1f613a8a7d66fe [new file with mode: 0644]

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