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 1E4746DE0EEA for ; Sun, 17 Nov 2019 06:40:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.203 X-Spam-Level: X-Spam-Status: No, score=-0.203 tagged_above=-999 required=5 tests=[AWL=-0.352, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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 qnuRAnhWflUa for ; Sun, 17 Nov 2019 06:40:33 -0800 (PST) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by arlo.cworth.org (Postfix) with ESMTPS id CB4A36DE0E8C for ; Sun, 17 Nov 2019 06:40:33 -0800 (PST) Received: by mail-wm1-f45.google.com with SMTP id l17so14642315wmh.0 for ; Sun, 17 Nov 2019 06:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version; bh=mDG5+mV6JbfwbDrvDcVeDeVfPkkL0NKa5eAIcdGZFAI=; b=syBieE+8q4Mec4Yxbd/wZxcOVe2WIBOIjKK4dC463Kzf8NgEtcRhkOZXH+3JpRQYvQ KQKstGhMbgbejLU1ARbUujzyfRphvPbhOHP2d5sXsOdUNdvVDRiQJr6+FM97dIXnVqJq ZudDkNiNRH4ZrgUdXI8EiPKgtglhku12F7vJ2JYepfmunCyylWYu8sbnvpT6Tgt/AMa5 QkjFPXGmU/o5smxhP23Tuci1NpbnTXY31oyqMPXb3uwRWH4hFxV3XjasDI0GKVu7Iqee WvO/AgXfp0sp/7eYOtJNmohlX9dKdHmpIqoiSEB2l/m7HClTx64dgx/8ZhPR43pQCXMc KGfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :date:message-id:mime-version; bh=mDG5+mV6JbfwbDrvDcVeDeVfPkkL0NKa5eAIcdGZFAI=; b=bUMCzd3Zu8UDVdGNJ1ShV/8EDsHGYJNZ6V4upbUP2WlgHm8qKS5rZR3NlozPUigNYN gUBaVSVkN+YzjAQk+vQIba0q/jLSrIiGnq0MQsjdrofNepP0htsQRbZVwAGMg2X5t/Lj FMI/yF1jamX0MuGyQmMtRd3p2UudoHvtPl6iMHFzLQUtMEZhsxSC7oEVOd9ahUk3Zia3 XSbNQ23LBU3g1rIMeE2UtCaivOFkT5J4ts9SkylYWlHX0w1hSS5rWTBSy4D9I5EkhVhx npOSjn6ef7cEet1Hw3Sp5mkNMneUU152EPZsqxgj62OsjNbHT7yZwhmAHkJ4PPIPk6bI wn7w== X-Gm-Message-State: APjAAAUbo0OMuemrqaofsslKj81a204vUs1FrQzsfEz1o2d5v1aonlih Pi99BAMEVxZVOyrKRHFlB10= X-Google-Smtp-Source: APXvYqzoLdUSd8+xEjjJj3MlGr1iCC2VW6gL+uQU2TQk48YIcTzqRpjPI62rcGmfC5hxETsu0H2/Zg== X-Received: by 2002:a1c:5415:: with SMTP id i21mr25766632wmb.120.1574001631975; Sun, 17 Nov 2019 06:40:31 -0800 (PST) Received: from powell.devork.be ([2a02:168:58d0::7a3]) by smtp.gmail.com with ESMTPSA id l10sm22206267wrg.90.2019.11.17.06.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 06:40:31 -0800 (PST) Sender: Floris Bruynooghe Received: (nullmailer pid 209550 invoked by uid 1000); Sun, 17 Nov 2019 14:40:30 -0000 From: Floris Bruynooghe To: David Bremner , Tomi Ollila , notmuch@notmuchmail.org Subject: Re: python CFFI bindings integration into notmuch build/test In-Reply-To: <87eey7u8eq.fsf@tethera.net> 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> Date: Sun, 17 Nov 2019 15:40:30 +0100 Message-ID: <874kz2r2g1.fsf@powell.devork.be> 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 14:40:35 -0000 On Sat 16 Nov 2019 at 10:51 -0500, David Bremner wrote: > Floris Bruynooghe writes: >> Anyway, this looks good. Would you like some changes, e.g. the rename >> to notmuch2 or so as patches? What's the next step. > > If you could look at the rename that would be great. Patches on top of > wip/cffi, or a ref for me to pull both sound fine. > >> Kind of unrelated, but in my attempt to run the full notmuch test suite >> (cd tests; make test) I somehow ended up with lots of weird tags in my >> notmuch database and made the emacs UI pretty horrible - though it seems >> I haven't lost any email. I'm sure that was my fault somehow even >> though I was just trying to follow the readme. But if anyone has any >> hints how to recover from this that could save me some time :) > > Hmm. I've never encountered that, but maybe it has to do with killing > the environment? The test harness uses the environment variable > NOTMUCH_CONFIG to point to a test database, and if that was deleted, it > would look in ~/.notmuch-config. Yeah, I probably managed to make it use ~/.notmuch-config somehow. > Still that would really only be tags from your pytest tests, and you'd > probably recognize those? The were a bunch of weird characters that looked like unicode test-cases, the pytest tests don't try to test notmuch only the bindings so doesn't really make up weird strings IIRC. I recovered with something like "notmuch dump | cleanup_tags.py | notmuch restore", oh well. 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? Cheers, Floris