[PATCH v5 0/9] notmuch search date:since..until query support
authorJani Nikula <jani@nikula.org>
Sun, 21 Oct 2012 21:22:23 +0000 (00:22 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:57 +0000 (09:49 -0800)
02/035a3f344abcec94c2e6a551962435927f7dad [new file with mode: 0644]

diff --git a/02/035a3f344abcec94c2e6a551962435927f7dad b/02/035a3f344abcec94c2e6a551962435927f7dad
new file mode 100644 (file)
index 0000000..7f80f5a
--- /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 6EDD6431FB6\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Oct 2012 14:22:39 -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 NLAGymjg3oQk for <notmuch@notmuchmail.org>;\r
+       Sun, 21 Oct 2012 14:22:38 -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 DC3E4431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Oct 2012 14:22:37 -0700 (PDT)\r
+Received: by mail-la0-f53.google.com with SMTP id l5so1455559lah.26\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Oct 2012 14:22:36 -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=krFJzWC/bA5Z8VyXTxcfwFRoXUP0KzjEjgf2nf24daY=;\r
+       b=AODHM7OfBihEIzmJAu9qVlk+fT8hA9tvvyIxD7hKJqi6dud6JtFnRn9LA4ZdVZ/Yqr\r
+       4k98c+HWACSl7cCYZJqJMzY+bKEfEM2tFpiRX7yTHPnDxwYvYj8PAORMzVUo3sFEEM7R\r
+       uxxdyW5oOPuCEGSxIyh/lWbmOOhbyjRbd49YwehO9ochBrWVvNjo43sq17sPU8ZTkbgn\r
+       vFf8fgRsh7vWBKjwOHQmpj3PZLZ8zsbMxF09nvCi4IkfuON8MhIHULBgvFYT2buLRC5Q\r
+       H40T2eK8nl/gnh8AnMMSjAub11Bu7hQWCIvZFrFsyvljw5eb0cra1WnTO4jkrQohH/Ap\r
+       39tw==\r
+Received: by 10.112.37.7 with SMTP id u7mr2951356lbj.30.1350854556201;\r
+       Sun, 21 Oct 2012 14:22:36 -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 eo4sm1419425lbb.5.2012.10.21.14.22.34\r
+       (version=SSLv3 cipher=OTHER); Sun, 21 Oct 2012 14:22:34 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v5 0/9] notmuch search date:since..until query support\r
+Date: Mon, 22 Oct 2012 00:22:23 +0300\r
+Message-Id: <cover.1350854171.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Gm-Message-State:\r
+ ALoCoQmnufXISrg3PpqVUttfAvKYUBbbSlAvIuPTMyBXh6baenp5ew/GdyeE8Milla4akkIDjud8\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: Sun, 21 Oct 2012 21:22:39 -0000\r
+\r
+Hi all, v5 of id:"cover.1350164594.git.jani@nikula.org", with the\r
+following changes in patch 2 per Ethan's review\r
+id:"87hapw9x99.fsf@betacantrips.com":\r
+ - remove useless intermediate function handle_postponed_number\r
+ - rename stringcmp to match_keyword\r
+\r
+BR,\r
+Jani.\r
+\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 | 1477 +++++++++++++++++++++++++++++++++\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, 2206 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.10.4\r
+\r