[PATCH v2 0/9] cli: alternative address deduplication
authorJani Nikula <jani@nikula.org>
Thu, 3 Sep 2015 19:39:56 +0000 (22:39 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:30 +0000 (14:49 -0700)
43/e85eb879e9e4d2ef3397c8e9385df1a558f68e [new file with mode: 0644]

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