Re: Automatic suppression of non-duplicate messages
authorDavid Bremner <david@tethera.net>
Sat, 3 Nov 2012 20:53:19 +0000 (16:53 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:16 +0000 (09:50 -0800)
92/eb6351dbc9d0e5f554649467a470663c166026 [new file with mode: 0644]

diff --git a/92/eb6351dbc9d0e5f554649467a470663c166026 b/92/eb6351dbc9d0e5f554649467a470663c166026
new file mode 100644 (file)
index 0000000..2f3b298
--- /dev/null
@@ -0,0 +1,72 @@
+Return-Path: <bremner@unb.ca>\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 E2311431FAF\r
+       for <notmuch@notmuchmail.org>; Sat,  3 Nov 2012 13:53:24 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 b7o8JPcwyy2j for <notmuch@notmuchmail.org>;\r
+       Sat,  3 Nov 2012 13:53:24 -0700 (PDT)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 61FE7431FAE\r
+       for <notmuch@notmuchmail.org>; Sat,  3 Nov 2012 13:53:24 -0700 (PDT)\r
+Received: from remotemail by tesseract.cs.unb.ca with local (Exim 4.72)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1TUkiX-0002nJ-26; Sat, 03 Nov 2012 17:53:21 -0300\r
+Received: (nullmailer pid 8528 invoked by uid 1000);\r
+       Sat, 03 Nov 2012 20:53:19 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Eirik Byrkjeflot Anonsen <eirik@eirikba.org>, notmuch@notmuchmail.org\r
+Subject: Re: Automatic suppression of non-duplicate messages\r
+In-Reply-To: <87mwyz3s9d.fsf@star.eba>\r
+References: <87mwyz3s9d.fsf@star.eba>\r
+User-Agent: Notmuch/0.14+76~g84a0c52 (http://notmuchmail.org) Emacs/24.1.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 03 Nov 2012 16:53:19 -0400\r
+Message-ID: <87390qxvb4.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Sat, 03 Nov 2012 20:53:25 -0000\r
+\r
+Eirik Byrkjeflot Anonsen <eirik@eirikba.org> writes:\r
+\r
+> That's not what I see.  If I search for a term that only appears in\r
+> one of the "copies", none of the copies are included in the search\r
+> result.\r
+\r
+The offending code is at line 1813 of lib/database.cc; the message is\r
+only indexed if the message-id is new.\r
+\r
+It might be sensible to move _notmuch_message_index_file into the other\r
+branch of the if, but even if that works fine, something more\r
+sophisticated is needed for the call to\r
+__notmuch_message_set_header_values; the invariant that each message has\r
+a single subject seems reasonable.\r
+\r
+Offhand I'm not sure of a good method of automatically deciding what is\r
+the same message (with e.g. headers and footer text added by a mailing\r
+list).\r
+\r
+\r
+\r