From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 235EC6DE1552 for ; Sat, 29 Aug 2015 07:56:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.317 X-Spam-Level: X-Spam-Status: No, score=-0.317 tagged_above=-999 required=5 tests=[AWL=0.403, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FHA8HiGKdXuP for ; Sat, 29 Aug 2015 07:56:42 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by arlo.cworth.org (Postfix) with ESMTPS id E055C6DE00CB for ; Sat, 29 Aug 2015 07:56:41 -0700 (PDT) Received: by widfa3 with SMTP id fa3so579499wid.1 for ; Sat, 29 Aug 2015 07:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=h3zF86PnVZ0ERJmQPl2YfuxKYeGrbRrCDTOh3bNEqxM=; b=Eybd4zffI4mIsZ3zlt8RBIJ+nzBNvtktWdv1VRgulL1TwG3U6IKMtYmybIh7lnmT9t j91s+NLC1l3BoBfcEqrvpNJ/rHqCinNuK+EdprMeme5cNyjDBVkCCK1Vb67wpsyCKZTo wfE9goPSsfzrHyzLiSDdguMllVG61JfpplQvnx802j6FFKMH90lQkKlTqTjIaY6HNPBq +c0pqXfB0fvUx6z3jILUVCDU9GYymAw5gx2I7VrB4AdegI71sO1lqk6A4RG3uy9sfoWi Gp+XJ73gWERGJdyo+CcuDf4g0A8r2PqtZMxJF44YWs2qReqj4G1LkQ4bz6vuPQqHXYXk AR3A== X-Gm-Message-State: ALoCoQnXvGaJE52hNG/CWnwXtq/3IGpmJfrjaVHsLYcZZBVLdnmPt5bGfcBKioehPqErELvGgBf/ X-Received: by 10.180.84.72 with SMTP id w8mr9857151wiy.71.1440860199781; Sat, 29 Aug 2015 07:56:39 -0700 (PDT) Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi. [188.238.79.131]) by smtp.gmail.com with ESMTPSA id y13sm13156137wjq.26.2015.08.29.07.56.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Aug 2015 07:56:38 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 0/5] cli: alternative address deduplication Date: Sat, 29 Aug 2015 17:56:31 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2015 14:56:44 -0000 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 63 Austin Clements $ notmuch address --output=count from:jani@nikula.org 2344 Jani Nikula 3 Jani 5 jani@nikula.org 6 "jani@nikula.org" And new deduplication: $ notmuch address --output=count --deduplicate=address from:amdragon 1607 Austin Clements $ notmuch address --output=count --deduplicate=address from:jani@nikula.org 2358 Jani Nikula 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