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 <[email protected]>
63      Austin Clements <[email protected]>

$ notmuch address --output=count from:[email protected]
2344    Jani Nikula <[email protected]>
3       Jani <[email protected]>
5       [email protected]
6       "[email protected]" <[email protected]>

And new deduplication:

$ notmuch address --output=count --deduplicate=address from:amdragon
1607    Austin Clements <[email protected]>

$ notmuch address --output=count --deduplicate=address from:[email protected]
2358    Jani Nikula <[email protected]>

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

_______________________________________________
notmuch mailing list
[email protected]
http://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to