From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GBl0GfOb+GSvLgEAauVa8A:P1 (envelope-from ) for ; Wed, 06 Sep 2023 17:34:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GBl0GfOb+GSvLgEAauVa8A (envelope-from ) for ; Wed, 06 Sep 2023 17:34:11 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 F041840370 for ; Wed, 6 Sep 2023 17:34:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=redhat.com header.s=mimecast20190719 header.b=T94rilx1; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=redhat.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694014451; 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:dkim-signature; bh=77yeP1kz3aMBwCPJimkSQkW7IL5RddrzTmJXuZ8Tr10=; b=uh/vR3SYyReCI99qvsn34lWtsh2lV0KSADPLtwavHxRI537Fj7qP60zaNbyTiQk6x8mzq1 YOMxaqfWEHC8YSJOSyby3bKB6XDAiGRiHiLA21veZ38xpiHbS1zXf0/5SJdcH+tr61dITx xr6Xnm4w5RqfbHXAS5ITjkzoi0rgnfugfkByMA7bd4CsnPOGSoEBrLKOp9JbC55BWAY+08 P9pAHLGdrOvk1Mz7yBnGtWrPiZxLiwN2hJzCoPwqnoqJDXU1BiJeIwrrf6XrmyFl55P5bz FVbrGeJXOBOifv+SmofQK9uTIxwo9r+I+Q56XQneDJFXC8cPS9KWeEKrWZw1UQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=redhat.com header.s=mimecast20190719 header.b=T94rilx1; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=redhat.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694014451; a=rsa-sha256; cv=none; b=LUoXIvzvUST2Pmn/4AzczwfHGtRwXpBPj+yll13P6UyiObpcZgvLPdyXPsctEgBuQVYYiP vSrcyvFtiGOy46h01GNQFcgw2LDSt5BI+bUF+HjvdABxvbnvJlB2MtLUyWK1zHWolZux4t f4WGQbIcxH7VZyK7NypED7v+2EGZ7H2K0sJXsMB93KUiv42i5AtoCoiNqaVcdUBoJorZqT 11C6bfYPYKzaW1zyZpZaGjU1Znbl71eX8VVcX0GDLZpU1TDyGhDDAFSVZelmd70Hj3Vs9A 6yztK8lENQmhe5GfGHQLudFxzde81T6Ou81CbyDJUUN/nyoD/jLKDVcu9IPARg== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F024E60950; Wed, 6 Sep 2023 15:34:08 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mail.notmuchmail.org (Postfix) with ESMTPS id 07C5D6094D for ; Wed, 6 Sep 2023 15:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694014444; 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; bh=3E+halwBTrq4MzLr9ABtzaaXkj2U82n9eE/L1BSlm/Q=; b=T94rilx1HGvWXSAiu1TfR1Oq0+1FUgCUWFR/9KX2ML4qH8J+3kexVD7lzOR326cudAXH7/ Fi/XRcsTbDahUhKgjYn/4uNT4ndUj4xMOOSV+HZ89NB7A0BQmH9vhMYaEvHPP6r+2yyt+N flIGxT7lmetXBh+2W7W1hWkKc4sRodc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-683-9-f8vgLqOwq53mYmQro1jQ-1; Wed, 06 Sep 2023 11:34:03 -0400 X-MC-Unique: 9-f8vgLqOwq53mYmQro1jQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4A01F3C11A00 for ; Wed, 6 Sep 2023 15:34:03 +0000 (UTC) Received: from green.redhat.com (unknown [10.2.16.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1872B40C2070 for ; Wed, 6 Sep 2023 15:34:03 +0000 (UTC) From: Eric Blake To: notmuch@notmuchmail.org Subject: [PATCH] config: Inform user if config file is broken Date: Wed, 6 Sep 2023 10:26:45 -0500 Message-ID: <20230906153402.101471-1-eblake@redhat.com> In-Reply-To: <5a7paaqa2dvdo5lmnxvaeacfwhdytfnkr4gfh6mtlotdviki2s@ro4gz4m2aqsw> References: <5a7paaqa2dvdo5lmnxvaeacfwhdytfnkr4gfh6mtlotdviki2s@ro4gz4m2aqsw> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: CGDFJEKOTS4AZC7GOJH7DM6VOBP5LZI4 X-Message-ID-Hash: CGDFJEKOTS4AZC7GOJH7DM6VOBP5LZI4 X-MailFrom: eblake@redhat.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 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="utf-8" Content-Transfer-Encoding: base64 X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Queue-Id: F041840370 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 5.35 X-Spam-Score: 5.35 X-TUID: UoSlqSY8P+Vp Z2xpYiAyLjc2LjEgc2lsZW50bHkgdHJlYXRzIGludmFsaWQgZXNjYXBlIHNlcXVlbmNlcyBhcyB0 d28NCmNoYXJhY3RlcnMsIGV2ZW4gdGhvdWdoIGl0IGlzIHdpbGxpbmcgdG8gc2V0IGEgR0Vycm9y IHdhcm5pbmcgYWJvdXQNCml0LiAgV2hpbGUgJ25vdG11Y2ggY29uZmlnIHNldCcgbmV2ZXIgcHJv ZHVjZXMgc3VjaCBzZXF1ZW5jZXMgaW4gdGhlDQpjb25maWcgZmlsZSwgdGhlIGZhY3QgdGhhdCB0 aGUgY29uZmlnIGZpbGUgaXMgaHVtYW4tcmVhZGFibGUgbGVuZHMNCml0c2VsZiB0byBoYW5kLXdy aXR0ZW4gZWRpdHMsIHdoZXJlIHRoZSBwZXJzb24gbWFraW5nIHRoZSBlZGl0cyBjYW4NCmludHJv ZHVjZSB0aGluZ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