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 17467431FAE for ; Sun, 9 Jun 2013 06:26:10 -0700 (PDT) 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 4fU6j5XbIM6S for ; Sun, 9 Jun 2013 06:26:02 -0700 (PDT) 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 3771B431FB6 for ; Sun, 9 Jun 2013 06:26:00 -0700 (PDT) Received: from smtp.qmul.ac.uk ([138.37.6.40]) by mail2.qmul.ac.uk with esmtp (Exim 4.71) (envelope-from ) id 1Ulfd6-0006Iu-Dc; Sun, 09 Jun 2013 14:25:58 +0100 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.71) (envelope-from ) id 1Ulfd5-00079h-Tk; Sun, 09 Jun 2013 14:25:56 +0100 From: Mark Walters To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH v2 3/7] man: document notmuch search --duplicate=N In-Reply-To: <87ehcbo1yf.fsf@qmul.ac.uk> References: <87ehcbo1yf.fsf@qmul.ac.uk> User-Agent: Notmuch/0.15.2+171~ge2f30a2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Sun, 09 Jun 2013 14:25:54 +0100 Message-ID: <87bo7fo1p9.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: 0e131666f761580328ed6425bc0b8b3c (of first 20000 bytes) X-SpamAssassin-Score: -0.0 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 -0.0 points. Summary of the scoring: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (markwalters1009[at]gmail.com) * -0.0 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: Sun, 09 Jun 2013 13:26:10 -0000 Sorry about that: I meant to cancel the message rather than sending it. What I was wondering was whether we should change the wording of the manpage to make it clear that notmuch search --output=files returns all filenames where any of the copies matches the search terms (I think; I was going to check before sending anything). In particular, notmuch search --output=files folder:a_folder may return filenames not in a_folder (This is slightly more noticeable with this patch than before as notmuch search --output=files --duplicate=1 folder:a_folder could give no results in folder a_folder (None of the above is meant to be a criticism of this patch: I have only sent this email due to my accidental sending of the previous message) Best wishes Mark What IOn Sun, 09 Jun 2013, Mark Walters wrote: > One thing that slightly bothers me with this set (which in some sense is > already true) is doing a search of the form > > notmuch search --output=files folder: > > T > > On Sun, 09 Jun 2013, Jani Nikula wrote: >> --- >> man/man1/notmuch-search.1 | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/man/man1/notmuch-search.1 b/man/man1/notmuch-search.1 >> index 1c1e049..4d8b3d3 100644 >> --- a/man/man1/notmuch-search.1 >> +++ b/man/man1/notmuch-search.1 >> @@ -158,6 +158,17 @@ but the "match count" is the number of matching non-excluded messages in the >> thread, rather than the number of matching messages. >> .RE >> >> +.RS 4 >> +.TP 4 >> +.BR \-\-duplicate=N >> + >> +Effective with >> +.BR --output=files , >> +output the Nth filename associated with each message matching the >> +query (N is 1-based). If N is greater than the number of files >> +associated with the message, don't print anything. >> +.RE >> + >> .SH EXIT STATUS >> >> This command supports the following special exit status codes >> -- >> 1.7.10.4 >> >> _______________________________________________ >> notmuch mailing list >> notmuch@notmuchmail.org >> http://notmuchmail.org/mailman/listinfo/notmuch