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 6C85542D286 for ; Sun, 16 Jan 2011 00:11:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 ZVWhGRfTsrKS for ; Sun, 16 Jan 2011 00:11:07 -0800 (PST) Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU [18.7.68.36]) by olra.theworths.org (Postfix) with ESMTP id C7BF142D283 for ; Sun, 16 Jan 2011 00:11:07 -0800 (PST) X-AuditID: 12074424-b7b0bae000000a05-d0-4d32a81a4251 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-7.mit.edu (Symantec Brightmail Gateway) with SMTP id FC.6D.02565.A18A23D4; Sun, 16 Jan 2011 03:11:06 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id p0G8B59h004712; Sun, 16 Jan 2011 03:11:05 -0500 Received: from drake.mit.edu (a074.catapulsion.net [70.36.81.74]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p0G8B3BA010508 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 16 Jan 2011 03:11:05 -0500 (EST) Received: from amthrax by drake.mit.edu with local (Exim 4.72) (envelope-from ) id 1PeNhX-0002XL-5r; Sun, 16 Jan 2011 03:11:03 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [RFC PATCH v2 0/8] Custom query parser, date search, folder search, and more Date: Sun, 16 Jan 2011 03:10:50 -0500 Message-Id: <1295165458-9573-1-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.2.3 X-Brightmail-Tracker: AAAAAA== Cc: amdragon@mit.edu 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, 16 Jan 2011 08:11:08 -0000 This is version 2 of the custom query parser. It now supports date searches with sane syntax, folder searches (without any additions or changes to the database, unlike cworth's recent commit), and "tag:*" and "-tag:*" queries for finding tagged and untagged messages. I used these features to guide changes to the original design and to validate the approach. This is still RFC, but it's much less raw now. In addition to the new features, the core query parser has a bunch of cleanups and changes, including completely redone NEAR and ADJ operators that now behave essentially the same as they do in Xapian's query parser. I also split the implementation of these out into a separate patch for ease of review. There's a notable lack of tests in this current series. I do have a pile of tests for the lexer, parser, and generator, but the infrastructure for testing them needs cleanup before I send that out.