From: Daniel Kahn Gillmor Date: Thu, 14 Jan 2016 21:20:59 +0000 (+1900) Subject: Bug report: undeletable traces of ghosts in the notmuch database X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bded019b213859f6b83426a4ca6a1695549c63e9;p=notmuch-archives.git Bug report: undeletable traces of ghosts in the notmuch database --- diff --git a/6a/2171a3f7a10e36140ec23d51fee60e8ddf8454 b/6a/2171a3f7a10e36140ec23d51fee60e8ddf8454 new file mode 100644 index 000000000..bea520fc7 --- /dev/null +++ b/6a/2171a3f7a10e36140ec23d51fee60e8ddf8454 @@ -0,0 +1,85 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 6C4716DE00DD + for ; Thu, 14 Jan 2016 13:21:14 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.026 +X-Spam-Level: +X-Spam-Status: No, score=-0.026 tagged_above=-999 required=5 + tests=[AWL=-0.026] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5EKYVS4Bg6Rb for ; + Thu, 14 Jan 2016 13:21:12 -0800 (PST) +Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) + by arlo.cworth.org (Postfix) with ESMTP id 9FC546DE1607 + for ; Thu, 14 Jan 2016 13:21:12 -0800 (PST) +Received: from fifthhorseman.net (unknown [38.109.115.130]) + by che.mayfirst.org (Postfix) with ESMTPSA id 66047F984 + for ; Thu, 14 Jan 2016 16:21:00 -0500 (EST) +Received: by fifthhorseman.net (Postfix, from userid 1000) + id CD5F620000; Thu, 14 Jan 2016 13:20:59 -0800 (PST) +From: Daniel Kahn Gillmor +To: notmuch@notmuchmail.org +Subject: Bug report: undeletable traces of ghosts in the notmuch database +User-Agent: Notmuch/0.21+66~g8c19a9a (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Thu, 14 Jan 2016 16:20:59 -0500 +Message-ID: <87twmf7t8k.fsf@alice.fifthhorseman.net> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 14 Jan 2016 21:21:14 -0000 + +If i add a message to my notmuch database that includes References: or +In-Reply-To: of a message-id that i don't have, notmuch creates a +"ghost" entry in the database. + +If i remove the message from my mail archive, and then re-run "notmuch +new", i'd expect all traces of that message to be gone completely. + +However, the ghost message-IDs appear to remain in the database. I've +tested this by: + + * create a demo notmuch installation + + * use delve -a to see that there is nothing in the db + + * add a message to it + + * run "notmuch new" + + * use delve -a (from xapian-tools) to see the list of terms + + * remove the message + + * run "notmuch new" + + * use delve -a to see that the ghost terms remain + + +This suggests that if i include a bogus message-id in my References: +list for any mail i send to a notmuch user, then access to their +database will let me tell whether they ever saw it or not, regardless of +whether they deleted the message. + +Deletion by the user should be final -- i don't like it when tools +snitch on their users. + +How should this be fixed? + + --dkg