From: Mark Walters Date: Sun, 25 Nov 2012 22:48:30 +0000 (+0000) Subject: Re: [Patch v2 12/17] man: document notmuch tag --batch, --input options X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7c141f1a6a65b766c8425757095cad10d7f11a6b;p=notmuch-archives.git Re: [Patch v2 12/17] man: document notmuch tag --batch, --input options --- diff --git a/33/6dabecb903872d17984996df5c56ec3bea02ce b/33/6dabecb903872d17984996df5c56ec3bea02ce new file mode 100644 index 000000000..e24d673e2 --- /dev/null +++ b/33/6dabecb903872d17984996df5c56ec3bea02ce @@ -0,0 +1,165 @@ +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 A089F431FAF + for ; Sun, 25 Nov 2012 14:48:33 -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 47ePqaG2oRc0 for ; + Sun, 25 Nov 2012 14:48:33 -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 E4588431FAE + for ; Sun, 25 Nov 2012 14:48:32 -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 1Tckzz-0003Fy-Gt; Sun, 25 Nov 2012 22:48:31 +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 1Tckzz-0007Ry-30; Sun, 25 Nov 2012 22:48:27 +0000 +From: Mark Walters +To: david@tethera.net, notmuch@notmuchmail.org +Subject: Re: [Patch v2 12/17] man: document notmuch tag --batch, + --input options +In-Reply-To: <1353792017-31459-13-git-send-email-david@tethera.net> +References: <1353792017-31459-1-git-send-email-david@tethera.net> + <1353792017-31459-13-git-send-email-david@tethera.net> +User-Agent: Notmuch/0.14+81~g9730584 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sun, 25 Nov 2012 22:48:30 +0000 +Message-ID: <87sj7xi9j5.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: 4dd1d513c83a6436fb78418c74be5925 (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.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: Sun, 25 Nov 2012 22:48:33 -0000 + + +On Sat, 24 Nov 2012, david@tethera.net wrote: +> From: Jani Nikula +> +> --- +> man/man1/notmuch-tag.1 | 52 +++++++++++++++++++++++++++++++++++++++++++++++- +> 1 file changed, 51 insertions(+), 1 deletion(-) +> +> diff --git a/man/man1/notmuch-tag.1 b/man/man1/notmuch-tag.1 +> index 0f86582..751db7b 100644 +> --- a/man/man1/notmuch-tag.1 +> +++ b/man/man1/notmuch-tag.1 +> @@ -4,7 +4,12 @@ notmuch-tag \- add/remove tags for all messages matching the search terms +> +> .SH SYNOPSIS +> .B notmuch tag +> -.RI "+<" tag> "|\-<" tag "> [...] [\-\-] <" search-term ">..." +> +.RI "+<" tag ">|\-<" tag "> [...] [\-\-] <" search-terms ">" +> + +> +.B notmuch tag +> +.RI "--batch" +> +.RI "[ --input=<" filename "> ]" +> + +> +> .SH DESCRIPTION +> +> @@ -29,6 +34,51 @@ updates the maildir flags according to tag changes if the +> configuration option is enabled. See \fBnotmuch-config\fR(1) for +> details. +> +> +Supported options for +> +.B tag +> +include +> +.RS 4 +> +.TP 4 +> +.BR \-\-batch +> + +> +Read batch tagging operations from standard input. This is more +> +efficient than repeated +> +.B notmuch tag +> +invocations. See +> +.B TAG FILE FORMAT +> +below for the input format. This option is not compatible with +> +specifying tagging on the command line. +> +.RE +> + +> +.RS 4 +> +.TP 4 +> +.BR "\-\-input=" +> + +> +Read input from given file, instead of from stdin. Implies +> +.BR --batch . +> + +> +.SH TAG FILE FORMAT +> + +> +The input must consist of lines of the format: +> + +> +.RI "T +<" tag ">|\-<" tag "> [...] [\-\-] <" search-terms ">" + +Is the T at the start of the line a remnant from a previous version? + +Mark + + +> + +> +Each line is interpreted similarly to +> +.B notmuch tag +> +command line arguments. The delimiter is one or more spaces ' '. Any +> +characters in and +> +.B may +> +be hex encoded with %NN where NN is the hexadecimal value of the +> +character. Any ' ' and '%' characters in and +> +.B must +> +be hex encoded (using %20 and %25, respectively). Any characters that +> +are not part of or +> +.B must not +> +be hex encoded. +> + +> +Leading and trailing space ' ' is ignored. Empty lines and lines +> +beginning with '#' are ignored. +> + +> .SH SEE ALSO +> +> \fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-count\fR(1), +> -- +> 1.7.10.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch