unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/6] cli: better tooling support for duplicate messages
@ 2013-05-13 18:26 Jani Nikula
  2013-05-13 18:26 ` [PATCH 1/6] cli: add --duplicate=N option to notmuch search Jani Nikula
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jani Nikula @ 2013-05-13 18:26 UTC (permalink / raw)
  To: notmuch

Patches 1-3 are an answer to a question on IRC:

<ccxCZ> is there a way for notmuch search --output=files to only output
        one file for Message-ID instead of all?

Yes, use --duplicate=0 on the command line. ;)

I suggest this interface (instead of, say, --output=file1 which was also
contemplated) for two reasons: it allows one to choose also other files
than the first one, and the same interface could be used later on in
notmuch show to display the duplicates.

An alternative could be something like --duplicates=(all|first|rest)
which would lack the possibility to pick a specific duplicate, but would
allow one to list all the "redundant" files with --duplicates=rest (this
would correspond to a number of invocations with --duplicate=1,
--duplicate=2, etc.)

Patches 4-6 add support for querying the file counts in notmuch
count. Most useful with a single id:<message-id> query I presume.


BR,
Jani.


Jani Nikula (6):
  cli: add --duplicate=N option to notmuch search
  test: test notmuch search --duplicate=N
  man: document notmuch search --duplicate=N
  cli: add --output=files option to notmuch count
  test: test notmuch count --output=files
  man: document notmuch count --output=files

 man/man1/notmuch-count.1  |   10 ++++++-
 man/man1/notmuch-search.1 |   11 ++++++++
 notmuch-count.c           |   37 ++++++++++++++++++++++++++
 notmuch-search.c          |   18 ++++++++-----
 test/count                |   10 +++++++
 test/search-output        |   65 +++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 144 insertions(+), 7 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-27  6:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 18:26 [PATCH 0/6] cli: better tooling support for duplicate messages Jani Nikula
2013-05-13 18:26 ` [PATCH 1/6] cli: add --duplicate=N option to notmuch search Jani Nikula
2013-05-27  0:26   ` David Bremner
2013-05-13 18:26 ` [PATCH 2/6] test: test notmuch search --duplicate=N Jani Nikula
2013-05-13 18:26 ` [PATCH 3/6] man: document " Jani Nikula
2013-05-13 18:26 ` [PATCH 4/6] cli: add --output=files option to notmuch count Jani Nikula
2013-05-13 18:27 ` [PATCH 5/6] test: test notmuch count --output=files Jani Nikula
2013-05-13 18:27 ` [PATCH 6/6] man: document " Jani Nikula
2013-05-27  0:36   ` David Bremner
2013-05-27  6:14     ` Mark Walters

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).