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 7D16B431FBD for ; Sun, 9 Dec 2012 06:56:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 cT8YX07eg4Jp for ; Sun, 9 Dec 2012 06:56:15 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C2914431FB6 for ; Sun, 9 Dec 2012 06:56:14 -0800 (PST) Received: by mail-la0-f53.google.com with SMTP id w12so1484151lag.26 for ; Sun, 09 Dec 2012 06:56:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=P8LWGdJKXm23XbNO4hNaNYzv8BokoAwARZA29B7btdk=; b=n+a2zLTnuTllCALeRH4rGwQTL4+zMGiCXVGai+71RJmAIuyQ3xLKvMUxvuo4B/yrNO LpcvJOCuSNNZ9bMImG0TVOVg3ZWpQfUqwmNpU9codPCufU+c2bMNG7C/akKm5p+eoS00 ROZIbsZbSjYRZ6ma6BVRn6PYeVpqQZiTtP3nV8sk/bzxpiBDnKp4HEa8EMwyheuR8v2B IZzTlqZa2UD+/TKyXN9ZHBSFaDe7AM09HrXtWjihUdzW1ZLhQAemzWXgizizDgGECBue fJCamiMJd3qe/QQTBXyLpT/gLdHEedOloMdHTbQNBDwATaFjMvgiTdKw0UGOUSUmtUgP VDLg== Received: by 10.152.105.103 with SMTP id gl7mr10852076lab.10.1355064974395; Sun, 09 Dec 2012 06:56:14 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id er8sm6708455lbb.9.2012.12.09.06.56.12 (version=SSLv3 cipher=OTHER); Sun, 09 Dec 2012 06:56:13 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v2 4/4] man: document notmuch search --format=text0 Date: Sun, 9 Dec 2012 16:55:59 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQn5cvrkSQ0JjDUNKUu65QM0Wxh1E4K5bjZBY/676HH5BcPxh6Chp7Yrym7FNt4neLPjwbW4 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 Dec 2012 14:56:16 -0000 --- man/man1/notmuch-search.1 | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/man/man1/notmuch-search.1 b/man/man1/notmuch-search.1 index 0aff348..22bcd0a 100644 --- a/man/man1/notmuch-search.1 +++ b/man/man1/notmuch-search.1 @@ -25,9 +25,11 @@ Supported options for include .RS 4 .TP 4 -.BR \-\-format= ( json | sexp | text ) +.BR \-\-format= ( json | sexp | text | text0 ) -Presents the results in either JSON, S-Expressions or plain-text (default). +Presents the results in either JSON, S-Expressions, newline character +separated plain-text (default), or null character separated plain-text +(compatible with \fBxargs\fR(1) -0 option where available). .RE .RS 4 @@ -48,32 +50,36 @@ the authors of the thread and the subject. .B threads Output the thread IDs of all threads with any message matching the -search terms, either one per line (\-\-format=text) or as a JSON array -(\-\-format=json) or an S-Expression list (\-\-format=sexp). +search terms, either one per line (\-\-format=text), separated by null +characters (\-\-format=text0), as a JSON array (\-\-format=json), or +an S-Expression list (\-\-format=sexp). .RE .RS 4 .TP 4 .B messages Output the message IDs of all messages matching the search terms, -either one per line (\-\-format=text) or as a JSON array -(\-\-format=json) or as an S-Expression list (\-\-format=sexp). +either one per line (\-\-format=text), separated by null characters +(\-\-format=text0), as a JSON array (\-\-format=json), or as an +S-Expression list (\-\-format=sexp). .RE .RS 4 .TP 4 .B files Output the filenames of all messages matching the search terms, either -one per line (\-\-format=text) or as a JSON array (\-\-format=json) or -as an S-Expression list (\-\-format=sexp). +one per line (\-\-format=text), separated by null characters +(\-\-format=text0), as a JSON array (\-\-format=json), or as an +S-Expression list (\-\-format=sexp). .RE .RS 4 .TP 4 .B tags Output all tags that appear on any message matching the search terms, -either one per line (\-\-format=text) or as a JSON array (\-\-format=json) -or as an S-Expression list (\-\-format=sexp). +either one per line (\-\-format=text), separated by null characters +(\-\-format=text0), as a JSON array (\-\-format=json), or as an +S-Expression list (\-\-format=sexp). .RE .RE -- 1.7.10.4