Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3750C6DE1534 for ; Thu, 3 Sep 2015 12:40:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=5 tests=[AWL=0.319, 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 xs0O9_4OfCWE for ; Thu, 3 Sep 2015 12:40:12 -0700 (PDT) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by arlo.cworth.org (Postfix) with ESMTPS id F11C86DE14F4 for ; Thu, 3 Sep 2015 12:40:11 -0700 (PDT) Received: by wibz8 with SMTP id z8so109816787wib.1 for ; Thu, 03 Sep 2015 12:40:09 -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=1Ncyu4nBQz7KMs0dFkAZczCpZb8oPkf4rZFfRLJOCGk=; b=SB2Y5sTqrGrC7+7TUPiBJzo5tz3VbTdaf5/1Yz9xilMrDzrR5hrQtP3zfDyDiP6hx6 FxjLNwGGGXD9f6D8DoFkJUPKOzBX3SJnB7WB6clUpFYkOloKhMwlTqANGg3hQgWhujMX y7KvvwZByNo/jlAIBfWpGhZ4MpiShEuJyK9RNN6+7UhY9bF2OMivTwQwBzy08STc0JIH age7+AXTAUT6CaXqBUsuQDIsVtfM/rQLRV+scP2t9YdB1xNU7xlAV63hD5zmTlqvE4bn 5tNW8y4+GbTlCyeZq7+L0y86W5ZbPtul/JIVw9TvmVqX4Le/Y1kTXRBsUwYmZVsGKbxE FTDg== X-Gm-Message-State: ALoCoQmCxlqCg+XBQN4pO1jU3dqgTv1aqRRcO+zdYi0R03aIawKXkQXMR85niXnfZkLU2F7AiqCy X-Received: by 10.180.37.164 with SMTP id z4mr1548909wij.28.1441309209693; Thu, 03 Sep 2015 12:40:09 -0700 (PDT) Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi. [188.238.79.131]) by smtp.gmail.com with ESMTPSA id p3sm623702wib.16.2015.09.03.12.40.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Sep 2015 12:40:08 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v2 0/9] cli: alternative address deduplication Date: Thu, 3 Sep 2015 22:39:56 +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: Thu, 03 Sep 2015 19:40:14 -0000 This is v2 of id:cover.1440859765.git.jani@nikula.org addressing review from the first (or rfc) version. Test are still missing, but everything else should be in place. (At least patches 1, 2, and 5 could be pushed without additional tests.) There's also one bug fix in patch 7. It is necessary to collect all results before printing for --deduplicate=address, similar to --output=count. BR, Jani. Jani Nikula (9): cli: g_hash_table_lookup_extended is overkill cli: abstract new mailbox creation cli: add support for not deduplicating notmuch address results man: document notmuch address --deduplicate=(no|mailbox) option util: move strcase_equal and strcase_hash to util cli: change the data structure for notmuch address deduplication cli: add support for deduplicating based on case insensitive address man: document notmuch address --deduplicate=address option cli: do not sort addresses on --output=count or --deduplicate=address doc/man1/notmuch-address.rst | 26 ++++++- lib/message-file.c | 21 ----- lib/notmuch-private.h | 1 + notmuch-client.h | 1 + notmuch-search.c | 178 +++++++++++++++++++++++++++++++++++++------ util/string-util.c | 21 +++++ util/string-util.h | 6 ++ 7 files changed, 207 insertions(+), 47 deletions(-) -- 2.1.4