Re: notmuch-mutt: support for duplicate message removal
authorJani Nikula <jani@nikula.org>
Wed, 1 Aug 2012 19:28:23 +0000 (22:28 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:48:43 +0000 (09:48 -0800)
ab/69c94aae57641dddfd613841e1c89b4f0fc454 [new file with mode: 0644]

diff --git a/ab/69c94aae57641dddfd613841e1c89b4f0fc454 b/ab/69c94aae57641dddfd613841e1c89b4f0fc454
new file mode 100644 (file)
index 0000000..251bae0
--- /dev/null
@@ -0,0 +1,101 @@
+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 olra.theworths.org (Postfix) with ESMTP id 1D6EC431FBC\r
+       for <notmuch@notmuchmail.org>; Wed,  1 Aug 2012 12:28:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id F+3fk-70rifR for <notmuch@notmuchmail.org>;\r
+       Wed,  1 Aug 2012 12:28:28 -0700 (PDT)\r
+Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
+       [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 449D0431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  1 Aug 2012 12:28:28 -0700 (PDT)\r
+Received: by lbbgk8 with SMTP id gk8so599201lbb.26\r
+       for <notmuch@notmuchmail.org>; Wed, 01 Aug 2012 12:28:26 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type:x-gm-message-state;\r
+       bh=lrruiLSiq7gsQIbyr/tpU/8iXkcf6Qt+c5MfiitwaKA=;\r
+       b=VNmFs054GgQ+EGMWm1s8+7zAwLxaoroG5cWb2gt6AioGuiad2ocnaC/kTh5LZRucBZ\r
+       JF+iwRmXXCjphVNjjqoRaGLQlP6xMOucrC/0Efp8zgNQ78LvPs/nSX94zLcqVUBZikpf\r
+       ICJwX0PwPKWKiyKF9jhxV1qK2UcnRuBNj67nIf+TC132ObO7Yodf+SJiIDSX07BQMwnR\r
+       lhOXJB8qDAFYD3oQjPSjAfymr9LMyjNsl3lrMs+e/hrH0BBwWtNMqK2+81d5s/XGWFAS\r
+       XUFnRWoSsFXTCfub/DLvx02fbLtZ2qrMCCH4uCdQF6+xbI/3bmQg2Ouw7Xt5LAzCf1ff\r
+       pF8w==\r
+Received: by 10.112.11.38 with SMTP id n6mr8296820lbb.82.1343849306601;\r
+       Wed, 01 Aug 2012 12:28:26 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id hg4sm3715193lab.11.2012.08.01.12.28.24\r
+       (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 12:28:25 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: "Kevin J. McCarthy" <kevin@8t8.us>\r
+Subject: Re: notmuch-mutt: support for duplicate message removal\r
+In-Reply-To: <20120801175426.GA14470@zaogao.lan>\r
+References: <1343808582-9519-1-git-send-email-zack@upsilon.cc>\r
+       <87pq7aam8n.fsf@nikula.org> <20120801175426.GA14470@zaogao.lan>\r
+User-Agent: Notmuch/0.13.2+104~gaee3080 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Wed, 01 Aug 2012 22:28:23 +0300\r
+Message-ID: <87a9yev2co.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQnnOXS5TdkzxPrz6pKF7FwxFXsNTI8znZHY92KG4UddTBDF23coryEPowYml/KWyt7MgwFB\r
+Cc: notmuch@notmuchmail.org, Stefano Zacchiroli <zack@upsilon.cc>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Wed, 01 Aug 2012 19:28:30 -0000\r
+\r
+On Wed, 01 Aug 2012, "Kevin J. McCarthy" <kevin@8t8.us> wrote:\r
+> Jani Nikula wrote:\r
+>> I'm guessing you get the duplicates because you have dupes in the mail\r
+>> store, and 'notmuch search --output=files' prints all the filenames\r
+>> associated with each matching message, rather than any other reason. The\r
+>> presented approach will only remove identical files, and will leave\r
+>> behind files that are basically the same message, but have differing\r
+>> headers, e.g. due to being received through different channels. Is this\r
+>> what you want?\r
+>\r
+> This method was something we felt comfortable enabling by default.\r
+>\r
+> Stefano and I discussed adding a (by default off) option to remove\r
+> duplicates by message-id, but wanted to get this patch merged first and\r
+> then think about it.\r
+\r
+Sounds reasonable, especially considering [1]. I have no comments on the\r
+patches; I'm not a notmuch-mutt (or perl) user.\r
+\r
+>> Perhaps an option to 'notmuch search --output=files' to print only one\r
+>> filename (even if there are many) per message would be interesting.\r
+>\r
+> This would be useful for the second approach.  If it's easy to do, that\r
+> would be great.\r
+\r
+Apart from [1], the hardest part will be bikeshedding about the option\r
+name. ;)\r
+\r
+BR,\r
+Jani.\r
+\r
+[1] id:"87d33av2sg.fsf@nikula.org"\r