From: Mark Walters Date: Sun, 9 Jun 2013 13:20:24 +0000 (+0100) Subject: Re: [PATCH v2 3/7] man: document notmuch search --duplicate=N X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a7b1fce6cb27c09ec431dfe4093e0cc146fc4d6;p=notmuch-archives.git Re: [PATCH v2 3/7] man: document notmuch search --duplicate=N --- diff --git a/9f/9b291dea6943a150fed53c99f9fbf5891b11f6 b/9f/9b291dea6943a150fed53c99f9fbf5891b11f6 new file mode 100644 index 000000000..1e9a6f671 --- /dev/null +++ b/9f/9b291dea6943a150fed53c99f9fbf5891b11f6 @@ -0,0 +1,113 @@ +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 15383431FAF + for ; Sun, 9 Jun 2013 06:20:40 -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 JKaXXxnXKv69 for ; + Sun, 9 Jun 2013 06:20:32 -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 24409431FAE + for ; Sun, 9 Jun 2013 06:20:32 -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 1UlfXl-0004jV-Qt; Sun, 09 Jun 2013 14:20:28 +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 1UlfXl-0006BH-IQ; Sun, 09 Jun 2013 14:20:25 +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: + +References: + +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:20:24 +0100 +Message-ID: <87ehcbo1yf.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: 5748312d64a20bb9a31f8eebff6ab8cc (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:20:40 -0000 + + +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