[PATCH 0/5] cli: alternative address deduplication

Jani Nikula jani at nikula.org
Sat Aug 29 07:56:31 PDT 2015


This series adds support both for not deduplicating addresses in notmuch
address, and for using just the case insensitive address part of an email
address. The new deduplication picks the most popular variant.

Real life examples, current deduplication:

$ notmuch address --output=count from:amdragon
1544	Austin Clements <amdragon at MIT.EDU>
63	Austin Clements <amdragon at mit.edu>

$ notmuch address --output=count from:jani at nikula.org
2344	Jani Nikula <jani at nikula.org>
3	Jani <jani at nikula.org>
5	jani at nikula.org
6	"jani at nikula.org" <jani at nikula.org>

And new deduplication:

$ notmuch address --output=count --deduplicate=address from:amdragon
1607	Austin Clements <amdragon at MIT.EDU>

$ notmuch address --output=count --deduplicate=address from:jani at nikula.org
2358	Jani Nikula <jani at nikula.org>

BR,
Jani.


Jani Nikula (5):
  cli: g_hash_table_lookup_extended is overkill
  cli: abstract new mailbox creation
  cli: add support for not deduplicating notmuch address results
  cli: change the data structure for notmuch address deduplication
  cli: add support for deduplicating based on case insensitive address

 notmuch-client.h |   1 +
 notmuch-search.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++--------
 2 files changed, 130 insertions(+), 20 deletions(-)

-- 
2.1.4



More information about the notmuch mailing list