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 697E6431FAF for ; Wed, 26 Dec 2012 00:52:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.098 X-Spam-Level: X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 ofMyXtHdwyxy for ; Wed, 26 Dec 2012 00:52:46 -0800 (PST) Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2723D431FAE for ; Wed, 26 Dec 2012 00:52:46 -0800 (PST) Received: from smtp.qmul.ac.uk ([138.37.6.40]) by mail2.qmul.ac.uk with esmtp (Exim 4.71) (envelope-from ) id 1Tnmj4-0008Lh-Im; Wed, 26 Dec 2012 08:52:37 +0000 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1Tnmj4-0000tf-6V; Wed, 26 Dec 2012 08:52:34 +0000 From: Mark Walters To: david@tethera.net, notmuch@notmuchmail.org, Subject: Re: Xapian-quoting based batch-tagging. In-Reply-To: <1356464567-21779-1-git-send-email-david@tethera.net> References: <1356464567-21779-1-git-send-email-david@tethera.net> User-Agent: Notmuch/0.14+236~g1d0044f (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Wed, 26 Dec 2012 08:52:35 +0000 Message-ID: <87ehid5h64.fsf@qmul.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Host-Address: 93.97.24.31 X-QM-SPAM-Info: Sender has good ham record. :) X-QM-Body-MD5: 788f1cf1ffb12927125cbe3b606ced0a (of first 20000 bytes) X-SpamAssassin-Score: -1.8 X-SpamAssassin-SpamBar: - X-SpamAssassin-Report: The QM spam filters have analysed this message to determine if it is spam. We require at least 5.0 points to mark a message as spam. This message scored -1.8 points. Summary of the scoring: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [138.37.6.40 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (markwalters1009[at]gmail.com) * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * 0.5 AWL AWL: From: address is in the auto white-list X-QM-Scan-Virus: ClamAV says the message is clean 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, 26 Dec 2012 08:52:48 -0000 On Tue, 25 Dec 2012, david@tethera.net wrote: > This is an alternative version of > > id:1356313183-9266-1-git-send-email-david@tethera.net > > batch tagging patches rebased on top of > > id:1356415076-5692-1-git-send-email-amdragon@mit.edu > > This mainly consisted of removing > > [Patch v9 04/17] notmuch-tag: factor out double quoting routine > (superceded by one of Austin's patches) > > [Patch v9 05/17] util/string-util: add a new string tokenized function > [Patch v9 06/17] unhex_and_quote: new function to quote hex-decoded queries > [Patch v9 07/17] notmuch-restore: move query handling for batch > (uneeded if query is passed verbatim to xapian) > > I also removed two tests, since they are about how we handle > quoting: > > [Patch v9 13/17] test/tagging: add test for compound queries with batch tagging > [Patch v9 17/17] test/tagging: add test for handling of parenthesized tag queries. > > A few small fixes were needed to the tests, and a fair amount of > changes to the notmuch-tag man page. Hi I am unclear about how this is going to deal with queries containing newlines. For dump/restore I think this is not a problem (as Austin and others have said), but for batch tagging I think it could be; for example the query could be for a tag containing a newline. Best wishes Mark > > Diffstat (against Austin's series) is as follows > > man/man1/notmuch-tag.1 | 99 ++++++++++++++++++++- > notmuch-tag.c | 169 ++++++++++++++++++++---------------- > tag-util.c | 87 +++++++++++++++++-- > tag-util.h | 15 ++++ > test/tagging | 195 ++++++++++++++++++++++++++++++++++++++++++ > 5 files changed, 480 insertions(+), 85 deletions(-) > > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch