--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 235EC6DE1552\r
+ for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:44 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.317\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.317 tagged_above=-999 required=5 tests=[AWL=0.403,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id FHA8HiGKdXuP for <notmuch@notmuchmail.org>;\r
+ Sat, 29 Aug 2015 07:56:42 -0700 (PDT)\r
+Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com\r
+ [209.85.212.178])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id E055C6DE00CB\r
+ for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:41 -0700 (PDT)\r
+Received: by widfa3 with SMTP id fa3so579499wid.1\r
+ for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:39 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=h3zF86PnVZ0ERJmQPl2YfuxKYeGrbRrCDTOh3bNEqxM=;\r
+ b=Eybd4zffI4mIsZ3zlt8RBIJ+nzBNvtktWdv1VRgulL1TwG3U6IKMtYmybIh7lnmT9t\r
+ j91s+NLC1l3BoBfcEqrvpNJ/rHqCinNuK+EdprMeme5cNyjDBVkCCK1Vb67wpsyCKZTo\r
+ wfE9goPSsfzrHyzLiSDdguMllVG61JfpplQvnx802j6FFKMH90lQkKlTqTjIaY6HNPBq\r
+ +c0pqXfB0fvUx6z3jILUVCDU9GYymAw5gx2I7VrB4AdegI71sO1lqk6A4RG3uy9sfoWi\r
+ Gp+XJ73gWERGJdyo+CcuDf4g0A8r2PqtZMxJF44YWs2qReqj4G1LkQ4bz6vuPQqHXYXk\r
+ AR3A==\r
+X-Gm-Message-State:\r
+ ALoCoQnXvGaJE52hNG/CWnwXtq/3IGpmJfrjaVHsLYcZZBVLdnmPt5bGfcBKioehPqErELvGgBf/\r
+X-Received: by 10.180.84.72 with SMTP id w8mr9857151wiy.71.1440860199781;\r
+ Sat, 29 Aug 2015 07:56:39 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi.\r
+ [188.238.79.131])\r
+ by smtp.gmail.com with ESMTPSA id y13sm13156137wjq.26.2015.08.29.07.56.38\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sat, 29 Aug 2015 07:56:38 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/5] cli: alternative address deduplication\r
+Date: Sat, 29 Aug 2015 17:56:31 +0300\r
+Message-Id: <cover.1440859765.git.jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 29 Aug 2015 14:56:44 -0000\r
+\r
+This series adds support both for not deduplicating addresses in notmuch\r
+address, and for using just the case insensitive address part of an email\r
+address. The new deduplication picks the most popular variant.\r
+\r
+Real life examples, current deduplication:\r
+\r
+$ notmuch address --output=count from:amdragon\r
+1544 Austin Clements <amdragon@MIT.EDU>\r
+63 Austin Clements <amdragon@mit.edu>\r
+\r
+$ notmuch address --output=count from:jani@nikula.org\r
+2344 Jani Nikula <jani@nikula.org>\r
+3 Jani <jani@nikula.org>\r
+5 jani@nikula.org\r
+6 "jani@nikula.org" <jani@nikula.org>\r
+\r
+And new deduplication:\r
+\r
+$ notmuch address --output=count --deduplicate=address from:amdragon\r
+1607 Austin Clements <amdragon@MIT.EDU>\r
+\r
+$ notmuch address --output=count --deduplicate=address from:jani@nikula.org\r
+2358 Jani Nikula <jani@nikula.org>\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (5):\r
+ cli: g_hash_table_lookup_extended is overkill\r
+ cli: abstract new mailbox creation\r
+ cli: add support for not deduplicating notmuch address results\r
+ cli: change the data structure for notmuch address deduplication\r
+ cli: add support for deduplicating based on case insensitive address\r
+\r
+ notmuch-client.h | 1 +\r
+ notmuch-search.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++--------\r
+ 2 files changed, 130 insertions(+), 20 deletions(-)\r
+\r
+-- \r
+2.1.4\r
+\r