From 3482bc5bb90184ec16e59cb06afd1da4b0375e95 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 5 Sep 2013 19:05:49 +1700 Subject: [PATCH] notmuch-mutt: switch to using the new --duplicate flag --- ea/f9532f15c043f1435270c4d7616abb94a4b0d1 | 81 +++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 ea/f9532f15c043f1435270c4d7616abb94a4b0d1 diff --git a/ea/f9532f15c043f1435270c4d7616abb94a4b0d1 b/ea/f9532f15c043f1435270c4d7616abb94a4b0d1 new file mode 100644 index 000000000..cb2a96c7e --- /dev/null +++ b/ea/f9532f15c043f1435270c4d7616abb94a4b0d1 @@ -0,0 +1,81 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 8C637429E4D + for ; Wed, 4 Sep 2013 19:14:03 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5+jT+FSNu1oW for ; + Wed, 4 Sep 2013 19:13:59 -0700 (PDT) +X-Greylist: delayed 465 seconds by postgrey-1.32 at olra; + Wed, 04 Sep 2013 19:13:59 PDT +Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com + [66.111.4.27]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 476D6429E43 + for ; Wed, 4 Sep 2013 19:13:59 -0700 (PDT) +Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) + by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2796720DDB; + Wed, 4 Sep 2013 22:06:14 -0400 (EDT) +Received: from frontend1 ([10.202.2.160]) + by compute4.internal (MEProxy); Wed, 04 Sep 2013 22:06:14 -0400 +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=8t8.us; h=from:to + :cc:subject:date:message-id; s=mesmtp; bh=hYXQJiW9lnJcq4Exo8xk/K + cf0J8=; b=btWhjS7r8ldVQXKd0VY8lPzx6FwVr0Z+xzB2WSiDTePrrNBDbGU68x + R5/VRmZgEXWl4rMiV1ceegvKw+bOxqo1z7Ec/sfulmZDBSYYxYix9s7u6x/kZbf4 + X4ePRNZrv3UmKT2rB2cj2+1qAwalp4gbutew1FDmBQvHTHRcACGIY= +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= + messagingengine.com; h=from:to:cc:subject:date:message-id; s= + smtpout; bh=hYXQJiW9lnJcq4Exo8xk/Kcf0J8=; b=KngWm4SXJlZF5p2fFr8E + FKCDRaWeJTEYjkuUl0b+0FZ9Lzkzsc0iGOlEf5O1m/b0qe4pWArCwI55JKzMhFZJ + kmJD6FOKiz3Iqh/cV04H6LuL8m2QVfW6O2afB0LQWBfuy3NCVPeOMsL4dR2e1C/r + K5XMtWwbmxViEaEPtQdE/cE= +X-Sasl-enc: aDrtr6xUjEW5x0ScecFEFsO4XIgHVUXtMblC9ZabOzG1 1378346773 +Received: from localhost (unknown [97.125.94.9]) + by mail.messagingengine.com (Postfix) with ESMTPA id A3EE1C00E7F; + Wed, 4 Sep 2013 22:06:13 -0400 (EDT) +From: Kevin McCarthy +To: notmuch@notmuchmail.org +Subject: notmuch-mutt: switch to using the new --duplicate flag +Date: Wed, 4 Sep 2013 19:05:49 -0700 +Message-Id: <1378346751-25548-1-git-send-email-kevin@8t8.us> +X-Mailer: git-send-email 1.8.4.rc3 +Cc: zack@upsilon.cc +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 05 Sep 2013 02:14:03 -0000 + +This patch series changes notmuch-mutt to use the new built-in +--duplicate flag for removing duplicates by message-id. + +This should speed up duplicate removal, since we no longer need to scan +and compute sha sums. However, it does now allow search results to be +hidden in the event of accidental or malicious message-id re-use. + +The duplicate removal is optional, but is currently enabled by default +in the distributed /etc/Muttrc.d/notmuch-mutt.rc file. + +Please don't hesitate to comment if this change is too controversial! + +Thank you, + +-Kevin -- 2.26.2