Re: [PATCH v6 0/9] notmuch search date:since..until query support
authorJani Nikula <jani@nikula.org>
Fri, 2 Nov 2012 18:53:15 +0000 (20:53 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:15 +0000 (09:50 -0800)
04/1869679b8df08aea0219b397af9a3c03410d8b [new file with mode: 0644]

diff --git a/04/1869679b8df08aea0219b397af9a3c03410d8b b/04/1869679b8df08aea0219b397af9a3c03410d8b
new file mode 100644 (file)
index 0000000..e0876e8
--- /dev/null
@@ -0,0 +1,96 @@
+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 88F3F431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  2 Nov 2012 11:53:24 -0700 (PDT)\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 fOho3P75dNbK for <notmuch@notmuchmail.org>;\r
+       Fri,  2 Nov 2012 11:53:23 -0700 (PDT)\r
+Received: from mail-la0-f53.google.com (mail-la0-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id DBB20431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  2 Nov 2012 11:53:22 -0700 (PDT)\r
+Received: by mail-la0-f53.google.com with SMTP id l5so3002321lah.26\r
+       for <notmuch@notmuchmail.org>; Fri, 02 Nov 2012 11:53:21 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type:x-gm-message-state;\r
+       bh=usUKd5P3v2Bsq3BtzsKK16Y+etrzrUwTTBUjpmBlcSA=;\r
+       b=fi97Tobiw0gJUQAYPje3lGeEzryv/B1Qp6Z+/3uMLLkhvbbcQMANpwAsWQmOhGWFkn\r
+       fSqFQuYjYkHAZgqhE7tnMeo9S4A08eL5iPqAA0+5uQS6XpYbrbNSqGS3lbxX2hsGovaE\r
+       rUyASid0J3o7ujkZpS+J14IqymKxpKx/Sep99hs2eqaHkoJoIFVPaqW45pH8Hmt/wq7G\r
+       59s2wkr78eST8EepKfqRc45EWgPh6nEO2uH1iBJeQ55QlRccGvqEPAv0v/wBvHe3N1e3\r
+       4xMAjj8P+AymOpUukitSSsk4tBOfaONuMxak+rTUeQuCkr/SaE5omQd3vX++AQ6qEqzo\r
+       hulQ==\r
+Received: by 10.152.104.50 with SMTP id gb18mr2569260lab.9.1351882399818;\r
+       Fri, 02 Nov 2012 11:53:19 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id p9sm3456922lbc.3.2012.11.02.11.53.17\r
+       (version=SSLv3 cipher=OTHER); Fri, 02 Nov 2012 11:53:18 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v6 0/9] notmuch search date:since..until query support\r
+In-Reply-To: <87hap76gz9.fsf@steelpick.2x.cz>\r
+References: <cover.1351626272.git.jani@nikula.org>\r
+       <87r4oejstw.fsf@zancas.localnet> <87hap76gz9.fsf@steelpick.2x.cz>\r
+User-Agent: Notmuch/0.14+81~g1924356 (http://notmuchmail.org) Emacs/23.4.1\r
+       (i686-pc-linux-gnu)\r
+Date: Fri, 02 Nov 2012 20:53:15 +0200\r
+Message-ID: <87d2zv3kh0.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQmgcYEnzoyZwBHr+WVEPdDqtUmBncs1p9OLl68S7UI37ONUYUgVKvg/7dE+czo1lPn6ykNa\r
+Cc: Tomi Ollila <tomi.ollila@iki.fi>\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: Fri, 02 Nov 2012 18:53:24 -0000\r
+\r
+On Fri, 02 Nov 2012, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> Just pulled current HEAD and tried\r
+>\r
+> $ notmuch search tag:notmuch and date:"this week"\r
+\r
+> notmuch search tag:notmuch and date:'"this week"'\r
+\r
+> $ notmuch search tag:notmuch and date:"this week.."\r
+\r
+There are two technical limitations at play here, imposed on us by\r
+Xapian. First, Xapian provides us with no way to support the date:\r
+prefix *without* the range operator "..", and worse, AFAICT there's no\r
+way to flag this as an error either. Second, Xapian does not support\r
+spaces in range expression (at least not the last time I checked from\r
+the source) regardless of the amount of quoting or escaping.\r
+\r
+These limitations are documented in the DATE AND TIME SEARCH section of\r
+the notmuch-search-terms(7) man page, and that's unfortunately about as\r
+much as we can do about it at the moment.\r
+\r
+The workaround is to always have .. in the date: search, and replace\r
+spaces with e.g. '-' or '_'. See the man page for details. The search\r
+you are looking for is either date:this-week..this-week or just\r
+date:this-week..\r
+\r
+HTH,\r
+Jani.\r