Re: reindex a message already indexed
authorDavid Bremner <david@tethera.net>
Mon, 16 Feb 2015 11:39:42 +0000 (07:39 +2000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:04 +0000 (14:48 -0700)
61/8fb195cce54680e903d8b33ec07e3aa425ba0f [new file with mode: 0644]

diff --git a/61/8fb195cce54680e903d8b33ec07e3aa425ba0f b/61/8fb195cce54680e903d8b33ec07e3aa425ba0f
new file mode 100644 (file)
index 0000000..c97d7a3
--- /dev/null
@@ -0,0 +1,70 @@
+Return-Path: <david@tethera.net>\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 2696C431FDD\r
+       for <notmuch@notmuchmail.org>; Mon, 16 Feb 2015 03:41:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 2LWQLqNxbSbz for <notmuch@notmuchmail.org>;\r
+       Mon, 16 Feb 2015 03:41:00 -0800 (PST)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+       [87.98.215.224])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id DA62D431FD5\r
+       for <notmuch@notmuchmail.org>; Mon, 16 Feb 2015 03:40:59 -0800 (PST)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+       4.80) (envelope-from <david@tethera.net>)\r
+       id 1YNK1v-0007zq-Ne; Mon, 16 Feb 2015 11:39:59 +0000\r
+Received: (nullmailer pid 17984 invoked by uid 1000); Mon, 16 Feb 2015\r
+       11:39:42 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: francois@avalenn.eu, notmuch@notmuchmail.org\r
+Subject: Re: reindex a message already indexed\r
+In-Reply-To: <20150206090905.GD3306@fjo-extia-HPdeb>\r
+References: <20150206090905.GD3306@fjo-extia-HPdeb>\r
+User-Agent: Notmuch/0.19+48~gb74ed1c (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 16 Feb 2015 07:39:42 -0400\r
+Message-ID: <87h9um13wh.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: Mon, 16 Feb 2015 11:41:03 -0000\r
+\r
+francois@avalenn.eu writes:\r
+\r
+> I would like to know is it is possible to force reindexation of an\r
+> already indexed message (without losing the tags, of course).\r
+>\r
+> The concerned messages had their content changed but this not\r
+> reflected in notmuch search results.\r
+>\r
+> Would changing the filename work ?\r
+\r
+I don't think so with the current code. I didn't go back and stare at\r
+the indexing code, but I believe it stops when it recognizes the\r
+message-id.  Maybe you could rename and change the message-id. But then\r
+you'd lose the tags; you'd also have to worry about duplicate files for\r
+the same message.\r
+\r
+d\r
+\r