From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 48F36431FB6 for ; Wed, 12 Sep 2012 14:27:35 -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 Cu-PynB2ruW9 for ; Wed, 12 Sep 2012 14:27:34 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 33302431FAF for ; Wed, 12 Sep 2012 14:27:34 -0700 (PDT) Received: by lbbgk1 with SMTP id gk1so1587473lbb.26 for ; Wed, 12 Sep 2012 14:27:31 -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=sHnrYe4ia37dzHOiK6DkMxIVbUiL6GXQJNAuJLrV704=; b=N7PJj6YCQrJnX/25tL5eTIJAzrHk38yoi/2OUk1ISEJXt29HpHNXQ9TtILt2k2WkR0 1mhZ5DVyLesGD80thdyqiUBxwU2ftqbLDBKMshXMuxEt9YfAixgXfrf1gHnBnLN6WJLz mVdb6O7wlE8ibZlyVI0Or4lKyu9x4I4oysJodc/x48wkC8c9jdR/W0/NQZGamgEyzyYC LHbZ4AHaUwu1VYPwnU8fnzoWxAmdp2Rib/nsKflIqVm7X5CzBfp3sxQkGkf4K1cXIUSv 0aNjERKPXsQksWa1QbpNiBk0/JVgl4tEMQ/QQDhWwA/13euU52oFUSk59Ne4C1HwJY+v M1kg== Received: by 10.112.23.40 with SMTP id j8mr153936lbf.31.1347485251028; Wed, 12 Sep 2012 14:27:31 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id lq10sm21216300lab.15.2012.09.12.14.27.28 (version=SSLv3 cipher=OTHER); Wed, 12 Sep 2012 14:27:29 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org, David Bremner Subject: [PATCH v3 0/9] notmuch search date:since..until query support Date: Thu, 13 Sep 2012 00:27:17 +0300 Message-Id: X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnLkOEivlh1irAagscEc55N1gb1fyOKaYBXeYgMwnCLrKbcerD6e5FpOyAZ2+acf/6RxpzT 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: Wed, 12 Sep 2012 21:27:35 -0000 Hi all, v3 of id:"cover.1344065790.git.jani@nikula.org". Notable changes since v2: * Address most of David's comments in id:"877gtdmqol.fsf@zancas.localnet". Delegating the list of time zones to the system is not without problems, so not done. Also create_output() is not split further. * Move the parser to a subdirectory of its own to be independent of the rest of the notmuch code base, and build it as a static library. This should be useful if the parser is ever packaged as a library of its own. * Add a high level documentation comment, and improve comments all around. * Add NEWS with hopes that this would make 0.15. :) 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 | 1484 +++++++++++++++++++++++++++++++++ parse-time-string/parse-time-string.h | 95 +++ test/Makefile.local | 7 +- test/basic | 2 +- test/notmuch-test | 2 + test/parse-time-string | 26 + test/parse-time.c | 145 ++++ test/search-date | 21 + 21 files changed, 2025 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.9.5