From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 7B3A86DE0F0C for ; Sun, 17 Nov 2019 08:10:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.061 X-Spam-Level: X-Spam-Status: No, score=-0.061 tagged_above=-999 required=5 tests=[AWL=-0.060, SPF_PASS=-0.001] 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 b3z9FBotvvG7 for ; Sun, 17 Nov 2019 08:10:00 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 3FAE56DE0EC6 for ; Sun, 17 Nov 2019 08:10:00 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1iWN7Z-0002xd-7K; Sun, 17 Nov 2019 11:09:53 -0500 Received: (nullmailer pid 23365 invoked by uid 1000); Sun, 17 Nov 2019 16:09:52 -0000 From: David Bremner To: Floris Bruynooghe , Tomi Ollila , notmuch@notmuchmail.org Subject: Re: python CFFI bindings integration into notmuch build/test In-Reply-To: <874kz2r2g1.fsf@powell.devork.be> References: <20191104013927.17037-1-david@tethera.net> <87eeylspzo.fsf@tethera.net> <87blte2su3.fsf@powell.devork.be> <878soi2j1p.fsf@powell.devork.be> <878soiqclh.fsf@powell.devork.be> <87eey7u8eq.fsf@tethera.net> <874kz2r2g1.fsf@powell.devork.be> Date: Sun, 17 Nov 2019 11:09:52 -0500 Message-ID: <87h832scvj.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sun, 17 Nov 2019 16:10:01 -0000 Floris Bruynooghe writes: > > I still have a bunch of non-existing messages with weird unicode message > IDs in them, but no associated filename just an empty string. AFAIK > notmuch_database_remove_message() needs a filename though, I've tried > removing the empty file which does not fail but doesn't clear those > database entries. The messages are not ghosts either. Any idea how I > might be able to clear those bad messages from the database? In principle running "notmuch new" should do it, if there are no files on disk corresponding to those messages. If that doesn't work, you might have to use "xapian-delve" to figure out what terms are attached to those message documents. d