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 4FDBA431FAF for ; Mon, 10 Dec 2012 13:34:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 ILTU9gjMOrJ7 for ; Mon, 10 Dec 2012 13:34:16 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9B178431FAE for ; Mon, 10 Dec 2012 13:34:16 -0800 (PST) Received: by mail-lb0-f181.google.com with SMTP id ge1so2521210lbb.26 for ; Mon, 10 Dec 2012 13:34:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:x-gm-message-state; bh=n7Acnqu+zh2kyQUu2VXRXq9AZc8ZNiNJe4rxeICMUtE=; b=K0Dc3thfdVPENJxo3z0TLKfEOdq6Fwey2H38sKHCFgvAOofoCdeqaA/xlvH6bvspaX vc3/buYHhnLZTQ1O9a+rkdnIZh4BUKJ/O9quLyRo9jxDc0o3LMVlXOlgG9wfCyg6L00n +/zx7l2FQRSz6L0xUHB1AFqurn7ppw3kH+4Q1xY750gNMCdlij3bgC7l1v36Zz220wP9 y33NuACHSiCFalDbVo/Qof+Mw6/WcCAKrdjMV07mnqH7i7swTwKNNufNbuSVGu9bvj6p wnJRwL0WaH9ur3+dWHD73A/lMN+ankvz0LSzPpbU2khq9mXjO/cwsDhlmjb0ulQ6lhxj BjGA== Received: by 10.152.108.48 with SMTP id hh16mr14995602lab.25.1355175255093; Mon, 10 Dec 2012 13:34:15 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id ps11sm8383115lab.12.2012.12.10.13.34.13 (version=SSLv3 cipher=OTHER); Mon, 10 Dec 2012 13:34:14 -0800 (PST) From: Jani Nikula To: david@tethera.net, notmuch@notmuchmail.org Subject: Re: [Patch v6 6/6] man: document notmuch tag --batch, --input options In-Reply-To: <1355096008-4544-7-git-send-email-david@tethera.net> References: <1355096008-4544-1-git-send-email-david@tethera.net> <1355096008-4544-7-git-send-email-david@tethera.net> User-Agent: Notmuch/0.14+138~g7041c56 (http://notmuchmail.org) Emacs/23.4.1 (i686-pc-linux-gnu) Date: Mon, 10 Dec 2012 23:34:12 +0200 Message-ID: <878v95a8x7.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQluDRFVUaYhs3iBjJUK59ZIYaOzzPagmDilByGBfu2DuECSBMpKkrv7ShSz43OV/tVGb/ki 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: Mon, 10 Dec 2012 21:34:17 -0000 LGTM. On Mon, 10 Dec 2012, david@tethera.net wrote: > From: Jani Nikula > > --- > man/man1/notmuch-tag.1 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > > diff --git a/man/man1/notmuch-tag.1 b/man/man1/notmuch-tag.1 > index d23700d..c4e60d3 100644 > --- a/man/man1/notmuch-tag.1 > +++ b/man/man1/notmuch-tag.1 > @@ -6,6 +6,11 @@ notmuch-tag \- add/remove tags for all messages matching the search terms > .B notmuch tag > .RI "+<" tag ">|\-<" tag "> [...] [\-\-] <" search-term "> [...]" > > +.B notmuch tag > +.RI "--batch" > +.RI "[ --input=<" filename "> ]" > + > + > .SH DESCRIPTION > > Add/remove tags for all messages matching the search terms. > @@ -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 a file (stdin by default). 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 "+<" tag ">|\-<" tag "> [...] [\-\-] <" search-term "> [...]" > + > +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