[PATCH v4 0/9] notmuch search date:since..until query support
authorJani Nikula <jani@nikula.org>
Sat, 13 Oct 2012 22:09:46 +0000 (01:09 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:46 +0000 (09:49 -0800)
43/175bd147e3b4a26126dd9860a30d5453b7b8f3 [new file with mode: 0644]

diff --git a/43/175bd147e3b4a26126dd9860a30d5453b7b8f3 b/43/175bd147e3b4a26126dd9860a30d5453b7b8f3
new file mode 100644 (file)
index 0000000..4f34e70
--- /dev/null
@@ -0,0 +1,119 @@
+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 92EEB431FAF\r
+       for <notmuch@notmuchmail.org>; Sat, 13 Oct 2012 15:10:02 -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 HNQhvJYRtfeT for <notmuch@notmuchmail.org>;\r
+       Sat, 13 Oct 2012 15:10:00 -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 6152E431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 13 Oct 2012 15:10:00 -0700 (PDT)\r
+Received: by mail-la0-f53.google.com with SMTP id l5so2917954lah.26\r
+       for <notmuch@notmuchmail.org>; Sat, 13 Oct 2012 15:09:58 -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:date:message-id:x-mailer:x-gm-message-state;\r
+       bh=4jXr1nRsNb/gzR0lr4MIVNs9R3xsswpNwkynrQ6wO1c=;\r
+       b=KnacrrVfDADQvoGANFQatNp7DsiwXg+rrT1zUHMOXKt39U+vyo+jhq8kjzllJjkic/\r
+       5tjDlTgR6St7uJdA30Suw1b2s5JxSTNu2azs+naVujnSQrWOBLbs+XZX/KCLh83smaZ4\r
+       zc2B9DBr4nuQaUuFC8LEN5FVR5jkYvGVCJywe1zXxjTHCpNsrGaPNPBzqVeEz1ZfCht1\r
+       6AhuXSFe8EgwIRw11h7GFvJAbhukjQqylr4a1qDbG8ezhff1kD3E9h3dwGFzKI/Fk2K0\r
+       FeGzaJUtDXR0rRV9iFuyVEwB6Bu/MpaAjZh3qzn8w4qmwlLzUmrjOXHJjX8lVV6msPKF\r
+       I3Qg==\r
+Received: by 10.152.148.40 with SMTP id tp8mr6757489lab.30.1350166198593;\r
+       Sat, 13 Oct 2012 15:09:58 -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 lv1sm2222626lab.14.2012.10.13.15.09.56\r
+       (version=SSLv3 cipher=OTHER); Sat, 13 Oct 2012 15:09:57 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v4 0/9] notmuch search date:since..until query support\r
+Date: Sun, 14 Oct 2012 01:09:46 +0300\r
+Message-Id: <cover.1350164594.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.9.5\r
+X-Gm-Message-State:\r
+ ALoCoQln7t88M+xjV3fJ8Icfmi1rXLMl20E2JTdsc+5XveiTuDA4yiDAlkUk5oXTJYqtvuEwto+p\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: Sat, 13 Oct 2012 22:10:02 -0000\r
+\r
+Hi all, v4 of id:"cover.1347484177.git.jani@nikula.org", addressing most\r
+of Michal Sojka's comments and issues in [1] and [2], and incorporating\r
+his idea for improved testability and the tests from [2]. Thanks Michal!\r
+\r
+[1] id:"8739262u4i.fsf@steelpick.2x.cz"\r
+[2] id:"87zk4e1f5k.fsf@steelpick.2x.cz"\r
+\r
+BR,\r
+Jani.\r
+\r
+Jani Nikula (9):\r
+  build: drop the -Wswitch-enum warning\r
+  parse-time-string: add a date/time parser to notmuch\r
+  test: add new test tool parse-time for date/time parser\r
+  test: add smoke tests for the date/time parser module\r
+  build: build parse-time-string as part of the notmuch lib and static\r
+    cli\r
+  lib: add date range query support\r
+  test: add tests for date:since..until range queries\r
+  man: document the date:since..until range queries\r
+  NEWS: date range search support\r
+\r
+ Makefile                              |    2 +-\r
+ Makefile.local                        |    2 +-\r
+ NEWS                                  |   14 +\r
+ configure                             |    2 +-\r
+ lib/Makefile.local                    |    3 +-\r
+ lib/database-private.h                |    1 +\r
+ lib/database.cc                       |    5 +\r
+ lib/parse-time-vrp.cc                 |   40 +\r
+ lib/parse-time-vrp.h                  |   19 +\r
+ man/man7/notmuch-search-terms.7       |  147 +++-\r
+ parse-time-string/Makefile            |    5 +\r
+ parse-time-string/Makefile.local      |   12 +\r
+ parse-time-string/README              |    9 +\r
+ parse-time-string/parse-time-string.c | 1492 +++++++++++++++++++++++++++++++++\r
+ parse-time-string/parse-time-string.h |  102 +++\r
+ test/Makefile.local                   |    7 +-\r
+ test/basic                            |    2 +-\r
+ test/notmuch-test                     |    2 +\r
+ test/parse-time-string                |   71 ++\r
+ test/parse-time.c                     |  281 +++++++\r
+ test/search-date                      |   21 +\r
+ 21 files changed, 2221 insertions(+), 18 deletions(-)\r
+ create mode 100644 lib/parse-time-vrp.cc\r
+ create mode 100644 lib/parse-time-vrp.h\r
+ create mode 100644 parse-time-string/Makefile\r
+ create mode 100644 parse-time-string/Makefile.local\r
+ create mode 100644 parse-time-string/README\r
+ create mode 100644 parse-time-string/parse-time-string.c\r
+ create mode 100644 parse-time-string/parse-time-string.h\r
+ create mode 100755 test/parse-time-string\r
+ create mode 100644 test/parse-time.c\r
+ create mode 100755 test/search-date\r
+\r
+-- \r
+1.7.9.5\r
+\r