From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yMYoEURkt2KsDgAAbAwnHQ (envelope-from ) for ; Sat, 25 Jun 2022 21:38:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aEw/EURkt2KgbAEA9RJhRA (envelope-from ) for ; Sat, 25 Jun 2022 21:38:44 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 DF8AB12377 for ; Sat, 25 Jun 2022 21:38:43 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 686DB5F771; Sat, 25 Jun 2022 19:38:41 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 06D9A5F6B6 for ; Sat, 25 Jun 2022 19:38:39 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 3DD285FBD0; Sat, 25 Jun 2022 15:38:38 -0400 (EDT) Received: (nullmailer pid 410913 invoked by uid 1000); Sat, 25 Jun 2022 19:38:36 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: notmuch_message* error handling cleanup part II In-Reply-To: <20220525105117.10709-1-david@tethera.net> References: <20220525105117.10709-1-david@tethera.net> Date: Sat, 25 Jun 2022 16:38:36 -0300 Message-ID: <87mte0o7nn.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: F6VWRKMKJ5Y7TU2GJYE6LA2JJQY27XPK X-Message-ID-Hash: F6VWRKMKJ5Y7TU2GJYE6LA2JJQY27XPK 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656185923; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=aVMxVTwZbwUKcG096SotIsqQg1hfRt9EtvaJLb7JQcY=; b=II5UGA77Ldg6o5LEMzuOqTCFDfGtgEGIpnx56CP+878AQGMnWDLlI8OF09ZSocBUcf5zvW ORMlW5H8O2A0+CZIB6Fm9eacixhQzQfZ//CV1WVgioTRpd8WugHCTrSTHFZPuGvuNjpC0U XGg716dwo7sWHqwRuNylMGHRjuJed/lUjNzV8wL55+FuLbzXFW8Xd+6UBvHtVW6gATtcc5 ONNrymWRRXavDjeG7u5M0m1ztZCOd1VXPpB5R4RFFP6HiCW4khYL4kerSwDedsT+hR3mCl te1QwZ2ughNmnu5BtrGRaBrFFFUYxfdUtsq5ZeRRB0jZToaNoaaPS1CM69xcrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656185923; a=rsa-sha256; cv=none; b=LZDkkkJKoHMvlokBOaL7upTK3alAeQqdaw8X7WP+zg9rfR3GU2hKysbDE12sPxnEruKvuu 9XH5cgm0K2UEauwZuFV2osK3sS7/2isgaxjger4Gwxpk6RV5gLBEzVHn1yaKsxrmoMh59x SMVwYYuksNhqeXs5Jxwp5nHgJvDU17fHUoE1Vvd7kThf7qitBfR9c1f2Z9AtBBh4fbNqSA o6zsAjjEI0Tkmchg5kc25uD8PXsV2A8mRV/dZdVch2FJKrrsGjRyL2eegJs3lUrwiHIj1x dIlWo2oQ2FEJFtw/Z74Ew+wKBLM/6Ok4S5ynvVTJSsDwdxRIh7CQ6Ex8ef05tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.17 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: DF8AB12377 X-Spam-Score: -2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: luBknEvTpzCP David Bremner writes: > This is a continuation of the series [1]. It should in principle be > applicable to master, but I have not tried resolving the resulting > conflicts. > > The big picture change here is having > _notmuch_database_ensure_writable check for the database being > open. The "open" flag was added for some other reason (config related > iirc), but now that we have it, we may as well use it to make certain > failures more atomic. > > > [1]: id:20220523233901.3506880-1-david@tethera.net series applied to master.