From: Jani Nikula <jani@nikula.org>
To: notmuch@notmuchmail.org
Subject: [PATCH 0/6] cli: better tooling support for duplicate messages
Date: Mon, 13 May 2013 21:26:55 +0300 [thread overview]
Message-ID: <cover.1368467532.git.jani@nikula.org> (raw)
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
next reply other threads:[~2013-05-13 18:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 18:26 Jani Nikula [this message]
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
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=cover.1368467532.git.jani@nikula.org \
--to=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).