From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +O8bOIkcW2AmQAAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 11:03:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6DfjM4kcW2DGXgAAB5/wlQ (envelope-from ) for ; Wed, 24 Mar 2021 11:03:37 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 737FB1C58A for ; Wed, 24 Mar 2021 12:03:37 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 88DAE2755A; Wed, 24 Mar 2021 07:03:31 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 10EC92706D for ; Wed, 24 Mar 2021 07:03:28 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6B30A5FA96; Wed, 24 Mar 2021 07:03:26 -0400 (EDT) Received: (nullmailer pid 979028 invoked by uid 1000); Wed, 24 Mar 2021 11:03:25 -0000 From: David Bremner To: Matthew Lear , notmuch@notmuchmail.org Subject: Re: [PATCH 2/2] CLI/new: drop the write lock to run the pre-new hook. In-Reply-To: <20210319020743.1491945-2-david@tethera.net> References: <9C1993DF-84BD-4199-A9C8-BADA98498812@bubblegen.co.uk> <20210319020743.1491945-1-david@tethera.net> <20210319020743.1491945-2-david@tethera.net> Date: Wed, 24 Mar 2021 08:03:25 -0300 Message-ID: <8735wkq0ea.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TU7ZX4KCYYHEQSSKVCR3HB7CBRMRTWDH X-Message-ID-Hash: TU7ZX4KCYYHEQSSKVCR3HB7CBRMRTWDH X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616583817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=b3KKXEROTT9bTsWQ2sOQ1rTSxnT2P0I1nevcY1O1Rjo=; b=QmRCCiBB5ByK7SQ02MVF2L0lBL9ay07YMjHLisPorl6SiepomBD/58MbPavA1QFZs4AUU8 OyGW8F34QorgJSWDD40VO5uLUj8bzoo7itMFuSOhC/7VL0fOoOIPu9qnpAuSuFQNEyUjef 22CxdK/7+KxxVpaJ5TJIeXZGLQueKp90JCTFXm+JHecn+VCxMZwlUmxcZEuFG1HCDQMETM 0HoXTX0Lsgd3gcPQKi0L8QowhDNOzeNrPInpKk0g/BDm443Cvp+Fmsogcr3A79vnFqaoqH voy6Xlq1nrxLK2TlhhIhuCfXS1G2qF8FupTJfhPyEKtYq/MW+2FD7fiY4IlZMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616583817; a=rsa-sha256; cv=none; b=bdLeGEuVW3NIrTeI6EWB/2QdUrwGoxOs288XI9vLes0vX12ULgouUfyEFaGtOQdFma5lq1 JmFzcrfSoj6bxYfdVP+BEJpOAseyBejjcuFVxEyWiQgILcQsAvcXtB5LseI5jrvqW4QD0G FtTZXn1Lalw1+dJG0mEVCcrj0Zo3iXiJR7QTHHRuzeTUF/G3KvFD9QV+SHgaWMrXR7XsHb 0uy1umeS7+fMY4OMlRsPOE4Iv783ZT3zW0f5u1aMh6IIPwO3hn/nyGl2/HIZN7WONWZ5PU vwx/Pz6vfdgW51X4EkEjmVAcW+EioCES1zr2jmEm52dPFcMX30AOMg7wvIzkwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 737FB1C58A X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: wO3mX/tJ6u5U David Bremner writes: > This fixes a bug reported in [1]. In principle it could be possible > avoid one of these reopens, but it complicates the logic in main with > respect to creating new databases. I have applied these two patches to master d