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 162BD431FB6 for ; Sat, 4 Aug 2012 00:41:55 -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 QeorFVTVksr7 for ; Sat, 4 Aug 2012 00:41:51 -0700 (PDT) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-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 5BB7B431FAE for ; Sat, 4 Aug 2012 00:41:51 -0700 (PDT) Received: by lagu2 with SMTP id u2so844636lag.26 for ; Sat, 04 Aug 2012 00:41:49 -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=YblgS7BHY6uPqV/kScj35inFbwRJ8G/Q031TONMpYac=; b=SdscI8hI3amM91zaVSgaGQBPpJfyQe5twsLmY0z84wV+icQUMqTazC+qk/ujTGVEb6 Rvhk6lKJ13pW7PsER+ics6ow+awMMxntMriYmAVSyOsPuDWm7lRwGLPmNUPzjgYOOWvn FeMKMTWCJv7BkmTWaOxSiVVk+llkQZGddV/Nuz9e2rjv3H0F/9eaultaTaRPbC2SPkmL /ycMyQmVG+VM/hZvW9MLjvhfyTpHsTlN5vTq+qxVz+LTVizHZjxwcQrPWyJ8M6PZ1L0S cvE4Acvz+e9homzWDJCeWnosI/rujWE/aiAOXQ1QkLkEBt/pBGPewQpKVGqnZgXtzHfr Rx0g== Received: by 10.152.105.51 with SMTP id gj19mr3958556lab.38.1344066109690; Sat, 04 Aug 2012 00:41:49 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id u10sm2434196lbm.14.2012.08.04.00.41.47 (version=SSLv3 cipher=OTHER); Sat, 04 Aug 2012 00:41:48 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v2 0/7] notmuch search date:since..until query support Date: Sat, 4 Aug 2012 10:41:38 +0300 Message-Id: X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmpux0KDkukftvuixhcyzrWitR0x7AxLanW6XxTVnI6Dsf0tt7MHKkzZ5v5tHezGvt6gzNB 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, 04 Aug 2012 07:41:55 -0000 Hi all, immediate v2 of id:"cover.1344028781.git.jani@nikula.org" just to rebase patch 3 against master. No other changes. BR, Jani. Jani Nikula (7): build: drop the -Wswitch-enum warning lib: add a date/time parser module test: add new test tool parse-time for date/time parser test: add smoke tests for the date/time parser module lib: add date range query support test: add tests for date:since..until range queries man: document the date:since..until range queries configure | 2 +- lib/Makefile.local | 2 + lib/database-private.h | 1 + lib/database.cc | 5 + lib/parse-time-string.c | 1384 +++++++++++++++++++++++++++++++++++++++ lib/parse-time-string.h | 95 +++ lib/parse-time-vrp.cc | 40 ++ lib/parse-time-vrp.h | 19 + man/man7/notmuch-search-terms.7 | 147 ++++- 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 + 15 files changed, 1883 insertions(+), 15 deletions(-) create mode 100644 lib/parse-time-string.c create mode 100644 lib/parse-time-string.h create mode 100644 lib/parse-time-vrp.cc create mode 100644 lib/parse-time-vrp.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