unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: Partial support for sorting the output of notmuch address
Date: Sun, 19 Dec 2021 14:18:51 -0400	[thread overview]
Message-ID: <20211219181854.115918-1-david@tethera.net> (raw)

One of the annoyances with notmuch-address (and motivations for
various third party work-a-likes) is the fact that it does not output
data in (descending) frequency order.  This series adds that for
either --output=count or --deduplicate=address. This is because the
current --dedup=mailbox handling does not actually count the
occurences.

I see two ways to go here

1) Unify the handling of --dedup={mailbox,address}. This will probably
yield a performance hit for dedup=mailbox. How big probably depends on how many duplicates you have.
The main difference would be that the output would all arrive at the end, like with --dedup=address.

If people are using --dedup=mailbox for large queries, now is the time
to speak up. I noticed the builtin completion in notmuch-emacs is
already using --deduplicate=address, so probably no change there.

2) Apply something like this series, and deal with questions from
users confused by why only one of the deduplication options, or
output=count, sorts.

At least in my tests, there does not seem to be a noticable
performance hit for the current series. I'm also interested to know if
other people do notice such a hit.


             reply	other threads:[~2021-12-19 18:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-19 18:18 David Bremner [this message]
2021-12-19 18:18 ` [RFC Patch 1/3] CLI/address: refactor/inline print_popular David Bremner
2021-12-19 18:18 ` [RFC Patch 2/3] CLI/address: sort output by frequency with deduplicate=address David Bremner
2021-12-19 18:18 ` [RFC Patch 3/3] CLI/address: source by frequency if output=count David Bremner
2021-12-20 16:48 ` Partial support for sorting the output of notmuch address inwit
2021-12-20 17:44   ` David Bremner

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=20211219181854.115918-1-david@tethera.net \
    --to=david@tethera.net \
    --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).