Re: notmuch-mutt: support for duplicate message removal
authorJani Nikula <jani@nikula.org>
Wed, 1 Aug 2012 11:24:24 +0000 (13:24 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:48:42 +0000 (09:48 -0800)
b4/bf43c9a4abd0bbdeeaadc4ec0b89ca44181b21 [new file with mode: 0644]

diff --git a/b4/bf43c9a4abd0bbdeeaadc4ec0b89ca44181b21 b/b4/bf43c9a4abd0bbdeeaadc4ec0b89ca44181b21
new file mode 100644 (file)
index 0000000..57d0393
--- /dev/null
@@ -0,0 +1,99 @@
+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 A6FC5431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  1 Aug 2012 04:24:32 -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 6m+lYwtRDyfm for <notmuch@notmuchmail.org>;\r
+       Wed,  1 Aug 2012 04:24:31 -0700 (PDT)\r
+Received: from mail-gh0-f181.google.com (mail-gh0-f181.google.com\r
+       [209.85.160.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 41A0C431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  1 Aug 2012 04:24:31 -0700 (PDT)\r
+Received: by ghbz13 with SMTP id z13so8683758ghb.26\r
+       for <notmuch@notmuchmail.org>; Wed, 01 Aug 2012 04:24:30 -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=XofFv/v9L9uT2UJvtpUM9UZfx0x7rC5CTxyOVrQvbv8=;\r
+       b=RFRKpANnNw8PAq1gHUw9/AgYZ0SYCdU4lgQsN0tSj45u5Vgg19fN+4HDi9Ufn2nDum\r
+       IOWkIQAsohQD35NDAbUiPY0iwqr2uTql+/va0PHWj/krMxLhCYFq9nzWTTkhqPJ6JO04\r
+       xwQ8hFO51JCJHSrrA1OebfxQytbvNlFa7SyCv0pP1YThGl24gymZYngWaXH93InF/rqh\r
+       hU/l6ObOhngB392rs1FAfKphhId5Pj7OnWR1k9dfBUFV47uwJNZbtpOponkIum6vY8+C\r
+       LYeyj1aqfcFQg8iFy27cQNcVC4ZBKgzUgOrMNvlRS1dmgGSO4awXGiupKAq+AS7OtHMK\r
+       GcqQ==\r
+Received: by 10.236.191.69 with SMTP id f45mr17026250yhn.8.1343820270188;\r
+       Wed, 01 Aug 2012 04:24:30 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+       by mx.google.com with ESMTPS id e24sm5077919yhh.4.2012.08.01.04.24.28\r
+       (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 04:24:29 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Stefano Zacchiroli <zack@upsilon.cc>, notmuch@notmuchmail.org\r
+Subject: Re: notmuch-mutt: support for duplicate message removal\r
+In-Reply-To: <1343808582-9519-1-git-send-email-zack@upsilon.cc>\r
+References: <1343808582-9519-1-git-send-email-zack@upsilon.cc>\r
+User-Agent: Notmuch/0.13.2+106~gb810aee (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 01 Aug 2012 13:24:24 +0200\r
+Message-ID: <87pq7aam8n.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQly4gMwrJiDfAxK9OXC+rc3d6VUSRzh1eTZkMWMIM14UhtmSfcXOObjI4hMtl9HMqIB/Do/\r
+Cc: "Kevin J. McCarthy" <kevin@8t8.us>\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 11:24:32 -0000\r
+\r
+On Wed, 01 Aug 2012, Stefano Zacchiroli <zack@upsilon.cc> wrote:\r
+> Heya,\r
+>   here is a patchset originating from a feature contributed by Kevin\r
+> J. McCarthy: duplicate message removal for notmuch-mutt searches.\r
+>\r
+> I've reviewed the main patch and gone through various iterations of it\r
+> with Kevin. I consider it suitable for application in its present\r
+> form, and I've added a subsequent patch to fix the Debian packaging\r
+> accordingly.\r
+>\r
+> Can someone with commit access be so kind of applying this patchset to\r
+> the master branch?\r
+>\r
+> Also, if you've further comments on the patch, do not hesitate!\r
+\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
+Perhaps an option to 'notmuch search --output=files' to print only one\r
+filename (even if there are many) per message would be interesting. IIRC\r
+the first filename is used by 'notmuch show' to display the message\r
+anyway. At a glance, this should be trivial to implement, but would it\r
+cover your needs?\r
+\r
+\r
+BR,\r
+Jani.\r