unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org
Subject: Re: [PATCH v2 3/7] man: document notmuch search --duplicate=N
Date: Sun, 09 Jun 2013 14:25:54 +0100	[thread overview]
Message-ID: <87bo7fo1p9.fsf@qmul.ac.uk> (raw)
In-Reply-To: <87ehcbo1yf.fsf@qmul.ac.uk>


Sorry about that: I meant to cancel the message rather than sending it.

What I was wondering was whether we should change the wording of the
manpage to make it clear that notmuch search --output=files returns all
filenames where any of the copies matches the search terms (I think; I
was going to check before sending anything). In particular, 

notmuch search --output=files folder:a_folder may return filenames not
in a_folder

(This is slightly more noticeable with this patch than before as 
notmuch search --output=files --duplicate=1 folder:a_folder could give
no results in folder a_folder

(None of the above is meant to be a criticism of this patch: I have
only sent this email due to my accidental sending of the previous message)

Best wishes

Mark




What IOn Sun, 09 Jun 2013, Mark Walters <markwalters1009@gmail.com> wrote:
> 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:<a_folder>
>
> T
>
> On Sun, 09 Jun 2013, Jani Nikula <jani@nikula.org> 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

  reply	other threads:[~2013-06-09 13:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09 11:03 [PATCH v2 0/7] cli: better tooling support for duplicate messages Jani Nikula
2013-06-09 11:03 ` [PATCH v2 1/7] cli: add --duplicate=N option to notmuch search Jani Nikula
2013-06-09 20:22   ` Mark Walters
2013-06-10 16:49     ` Jani Nikula
2013-06-10 15:57   ` [PATCH v3] " Jani Nikula
2013-06-09 11:03 ` [PATCH v2 2/7] test: test notmuch search --duplicate=N Jani Nikula
2013-06-09 11:03 ` [PATCH v2 3/7] man: document " Jani Nikula
2013-06-09 13:20   ` Mark Walters
2013-06-09 13:25     ` Mark Walters [this message]
2013-06-10 16:39       ` Jani Nikula
2013-06-10 16:28   ` [PATCH v3] " Jani Nikula
2013-06-09 11:03 ` [PATCH v2 4/7] cli: add --output=files option to notmuch count Jani Nikula
2013-06-09 11:03 ` [PATCH v2 5/7] test: test notmuch count --output=files Jani Nikula
2013-06-09 11:03 ` [PATCH v2 6/7] man: document " Jani Nikula
2013-06-09 11:03 ` [PATCH v2 7/7] NEWS: cli options for improved duplicate message handling Jani Nikula
2013-06-10 15:30 ` [PATCH v2 0/7] cli: better tooling support for duplicate messages Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bo7fo1p9.fsf@qmul.ac.uk \
    --to=markwalters1009@gmail.com \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).