From: Jani Nikula Date: Sun, 21 Oct 2012 21:22:23 +0000 (+0300) Subject: [PATCH v5 0/9] notmuch search date:since..until query support X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=49ecc6dc330b0f80954f9a51afc69a986dc2d421;p=notmuch-archives.git [PATCH v5 0/9] notmuch search date:since..until query support --- diff --git a/02/035a3f344abcec94c2e6a551962435927f7dad b/02/035a3f344abcec94c2e6a551962435927f7dad new file mode 100644 index 000000000..7f80f5a68 --- /dev/null +++ b/02/035a3f344abcec94c2e6a551962435927f7dad @@ -0,0 +1,119 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 6EDD6431FB6 + for ; Sun, 21 Oct 2012 14:22:39 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id NLAGymjg3oQk for ; + Sun, 21 Oct 2012 14:22:38 -0700 (PDT) +Received: from mail-la0-f53.google.com (mail-la0-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DC3E4431FAE + for ; Sun, 21 Oct 2012 14:22:37 -0700 (PDT) +Received: by mail-la0-f53.google.com with SMTP id l5so1455559lah.26 + for ; Sun, 21 Oct 2012 14:22:36 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; + bh=krFJzWC/bA5Z8VyXTxcfwFRoXUP0KzjEjgf2nf24daY=; + b=AODHM7OfBihEIzmJAu9qVlk+fT8hA9tvvyIxD7hKJqi6dud6JtFnRn9LA4ZdVZ/Yqr + 4k98c+HWACSl7cCYZJqJMzY+bKEfEM2tFpiRX7yTHPnDxwYvYj8PAORMzVUo3sFEEM7R + uxxdyW5oOPuCEGSxIyh/lWbmOOhbyjRbd49YwehO9ochBrWVvNjo43sq17sPU8ZTkbgn + vFf8fgRsh7vWBKjwOHQmpj3PZLZ8zsbMxF09nvCi4IkfuON8MhIHULBgvFYT2buLRC5Q + H40T2eK8nl/gnh8AnMMSjAub11Bu7hQWCIvZFrFsyvljw5eb0cra1WnTO4jkrQohH/Ap + 39tw== +Received: by 10.112.37.7 with SMTP id u7mr2951356lbj.30.1350854556201; + Sun, 21 Oct 2012 14:22:36 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id eo4sm1419425lbb.5.2012.10.21.14.22.34 + (version=SSLv3 cipher=OTHER); Sun, 21 Oct 2012 14:22:34 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH v5 0/9] notmuch search date:since..until query support +Date: Mon, 22 Oct 2012 00:22:23 +0300 +Message-Id: +X-Mailer: git-send-email 1.7.10.4 +X-Gm-Message-State: + ALoCoQmnufXISrg3PpqVUttfAvKYUBbbSlAvIuPTMyBXh6baenp5ew/GdyeE8Milla4akkIDjud8 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 21 Oct 2012 21:22:39 -0000 + +Hi all, v5 of id:"cover.1350164594.git.jani@nikula.org", with the +following changes in patch 2 per Ethan's review +id:"87hapw9x99.fsf@betacantrips.com": + - remove useless intermediate function handle_postponed_number + - rename stringcmp to match_keyword + +BR, +Jani. + + +Jani Nikula (9): + build: drop the -Wswitch-enum warning + parse-time-string: add a date/time parser to notmuch + test: add new test tool parse-time for date/time parser + test: add smoke tests for the date/time parser module + build: build parse-time-string as part of the notmuch lib and static + cli + lib: add date range query support + test: add tests for date:since..until range queries + man: document the date:since..until range queries + NEWS: date range search support + + Makefile | 2 +- + Makefile.local | 2 +- + NEWS | 14 + + configure | 2 +- + lib/Makefile.local | 3 +- + lib/database-private.h | 1 + + lib/database.cc | 5 + + lib/parse-time-vrp.cc | 40 + + lib/parse-time-vrp.h | 19 + + man/man7/notmuch-search-terms.7 | 147 +++- + parse-time-string/Makefile | 5 + + parse-time-string/Makefile.local | 12 + + parse-time-string/README | 9 + + parse-time-string/parse-time-string.c | 1477 +++++++++++++++++++++++++++++++++ + parse-time-string/parse-time-string.h | 102 +++ + test/Makefile.local | 7 +- + test/basic | 2 +- + test/notmuch-test | 2 + + test/parse-time-string | 71 ++ + test/parse-time.c | 281 +++++++ + test/search-date | 21 + + 21 files changed, 2206 insertions(+), 18 deletions(-) + create mode 100644 lib/parse-time-vrp.cc + create mode 100644 lib/parse-time-vrp.h + create mode 100644 parse-time-string/Makefile + create mode 100644 parse-time-string/Makefile.local + create mode 100644 parse-time-string/README + create mode 100644 parse-time-string/parse-time-string.c + create mode 100644 parse-time-string/parse-time-string.h + create mode 100755 test/parse-time-string + create mode 100644 test/parse-time.c + create mode 100755 test/search-date + +-- +1.7.10.4 +