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 92EEB431FAF for ; Sat, 13 Oct 2012 15:10:02 -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 HNQhvJYRtfeT for ; Sat, 13 Oct 2012 15:10:00 -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 6152E431FAE for ; Sat, 13 Oct 2012 15:10:00 -0700 (PDT) Received: by mail-la0-f53.google.com with SMTP id l5so2917954lah.26 for ; Sat, 13 Oct 2012 15:09:58 -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=4jXr1nRsNb/gzR0lr4MIVNs9R3xsswpNwkynrQ6wO1c=; b=KnacrrVfDADQvoGANFQatNp7DsiwXg+rrT1zUHMOXKt39U+vyo+jhq8kjzllJjkic/ 5tjDlTgR6St7uJdA30Suw1b2s5JxSTNu2azs+naVujnSQrWOBLbs+XZX/KCLh83smaZ4 zc2B9DBr4nuQaUuFC8LEN5FVR5jkYvGVCJywe1zXxjTHCpNsrGaPNPBzqVeEz1ZfCht1 6AhuXSFe8EgwIRw11h7GFvJAbhukjQqylr4a1qDbG8ezhff1kD3E9h3dwGFzKI/Fk2K0 FeGzaJUtDXR0rRV9iFuyVEwB6Bu/MpaAjZh3qzn8w4qmwlLzUmrjOXHJjX8lVV6msPKF I3Qg== Received: by 10.152.148.40 with SMTP id tp8mr6757489lab.30.1350166198593; Sat, 13 Oct 2012 15:09:58 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id lv1sm2222626lab.14.2012.10.13.15.09.56 (version=SSLv3 cipher=OTHER); Sat, 13 Oct 2012 15:09:57 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v4 0/9] notmuch search date:since..until query support Date: Sun, 14 Oct 2012 01:09:46 +0300 Message-Id: X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQln7t88M+xjV3fJ8Icfmi1rXLMl20E2JTdsc+5XveiTuDA4yiDAlkUk5oXTJYqtvuEwto+p 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: Sat, 13 Oct 2012 22:10:02 -0000 Hi all, v4 of id:"cover.1347484177.git.jani@nikula.org", addressing most of Michal Sojka's comments and issues in [1] and [2], and incorporating his idea for improved testability and the tests from [2]. Thanks Michal! [1] id:"8739262u4i.fsf@steelpick.2x.cz" [2] id:"87zk4e1f5k.fsf@steelpick.2x.cz" 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 | 1492 +++++++++++++++++++++++++++++++++ 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, 2221 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