[PATCH v3] man: document notmuch search --duplicate=N
authorJani Nikula <jani@nikula.org>
Mon, 10 Jun 2013 16:28:34 +0000 (19:28 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:55:32 +0000 (09:55 -0800)
9b/290c9c7ffc9f37797d2ea1d4705d97c2782f9a [new file with mode: 0644]

diff --git a/9b/290c9c7ffc9f37797d2ea1d4705d97c2782f9a b/9b/290c9c7ffc9f37797d2ea1d4705d97c2782f9a
new file mode 100644 (file)
index 0000000..b8df942
--- /dev/null
@@ -0,0 +1,117 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D2FF3431FC4\r
+       for <notmuch@notmuchmail.org>; Mon, 10 Jun 2013 09:28:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id l1kifQY9g5y1 for <notmuch@notmuchmail.org>;\r
+       Mon, 10 Jun 2013 09:28:42 -0700 (PDT)\r
+Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com\r
+       [209.85.217.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 197B9431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 10 Jun 2013 09:28:41 -0700 (PDT)\r
+Received: by mail-lb0-f178.google.com with SMTP id y6so5024943lbh.9\r
+       for <notmuch@notmuchmail.org>; Mon, 10 Jun 2013 09:28:40 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
+       :x-gm-message-state;\r
+       bh=R9kPXSyS7hq59WrlCm1YhNzYFza7FFoweiEEWLL4uC4=;\r
+       b=Va9jm5eienQLPjf6tJsRq8GsjwB3MaoSo7L9zfe4U5gFXgdB36WqdD9f8BBYlPSNuX\r
+       PWMmQhgO6e41TqLBR+8fhdgCXxccDVWTWzOzmQWNZi4Dt/r0mG6ZXvJ+LNEv5XJusIEy\r
+       VX/IBjvt66ptUjl4UcjeFS/Czjgr+8HO/FvL/D2K4xnac6KNg9Dc1vf3N1W5fXyxaV4s\r
+       bDQtKDusI69JTLfG4O2daJaf3rmqB06ueGQfwtOgaUD9r8Pj/pJAzl9Dus5W8HWhkJOA\r
+       +RlkIPjQ4Df8N/4gPIVN9M134RVE0OhABmAWTR5sMWWjyf3EYfdMR8MOvlFwJeUVhXJO\r
+       2OUQ==\r
+X-Received: by 10.152.116.7 with SMTP id js7mr5336485lab.7.1370881720639;\r
+       Mon, 10 Jun 2013 09:28:40 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi.\r
+       [88.195.118.211])\r
+       by mx.google.com with ESMTPSA id a3sm5958543lbg.2.2013.06.10.09.28.38\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Mon, 10 Jun 2013 09:28:39 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org,\r
+       Mark Walters <markwalters1009@gmail.com>\r
+Subject: [PATCH v3] man: document notmuch search --duplicate=N\r
+Date: Mon, 10 Jun 2013 19:28:34 +0300\r
+Message-Id: <1370881714-3303-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To:\r
+ <e72d722da8706559142fcb3ea2626990b39192c5.1370775663.git.jani@nikula.org>\r
+References:\r
+ <e72d722da8706559142fcb3ea2626990b39192c5.1370775663.git.jani@nikula.org>\r
+X-Gm-Message-State:\r
+ ALoCoQkF7piGjokuuuPLA3cKNT3QqwfvDtpfPXS4NcMqm0zbSaE3f0SQ5OSzpC9SCkUc1BIB4bIt\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 10 Jun 2013 16:28:50 -0000\r
+\r
+---\r
+\r
+v3: clarify dupe vs. folder prefix per Mark's suggestion\r
+---\r
+ man/man1/notmuch-search.1 |   20 ++++++++++++++++++++\r
+ 1 file changed, 20 insertions(+)\r
+\r
+diff --git a/man/man1/notmuch-search.1 b/man/man1/notmuch-search.1\r
+index 1c1e049..957b24b 100644\r
+--- a/man/man1/notmuch-search.1\r
++++ b/man/man1/notmuch-search.1\r
+@@ -80,6 +80,10 @@ Output the filenames of all messages matching the search terms, either\r
+ one per line (\-\-format=text), separated by null characters\r
+ (\-\-format=text0), as a JSON array (\-\-format=json), or as an\r
+ S-Expression list (\-\-format=sexp).\r
++\r
++Note that each message may have multiple filenames associated with it.\r
++All of them are included in the output, unless limited with the\r
++\-\-duplicate=N option.\r
+ .RE\r
+ .RS 4\r
+ .TP 4\r
+@@ -158,6 +162,22 @@ but the "match count" is the number of matching non-excluded messages in the\r
+ thread, rather than the number of matching messages.\r
+ .RE\r
\r
++.RS 4\r
++.TP 4\r
++.BR \-\-duplicate=N\r
++\r
++Effective with\r
++.BR --output=files ,\r
++output the Nth filename associated with each message matching the\r
++query (N is 1-based). If N is greater than the number of files\r
++associated with the message, don't print anything.\r
++\r
++Note that this option is orthogonal with the\r
++.BR folder:\r
++search prefix. The prefix matches messages based on filenames. This\r
++option filters filenames of the matching messages.\r
++.RE\r
++\r
+ .SH EXIT STATUS\r
\r
+ This command supports the following special exit status codes\r
+-- \r
+1.7.10.4\r
+\r