From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS11403 64.147.123.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 752411F4BD for ; Thu, 3 Oct 2019 11:16:08 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id C811E541 for ; Thu, 3 Oct 2019 07:16:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 03 Oct 2019 07:16:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=JtfKoXgdQsySC+wqA3EvZEGbKT206fXwRBEwvFQJFvA=; b=bEnXEKWJ XD2fo4mYqxoLxg9HJFQEFQHh6MaqRwPgrIF+V9Se5UroEn9WUUzwscE/GHG0Se2S k4I474hbQlToZBnc+llJB9JUn7AG3uieAVHy3SCIHUsYmcHCa/moL/YYbm6PwyNn d+hA0Oa58Ksj0R1CmPXYoIy/v1yo7xP8qRpwezHuOX6Ekz+E2ahEeUCzjDPbnc55 SY5odcfBRwEESmiZrxUSygwBfJYE91NFEQ33ZjGn1liIClnYZHsLCpM4O18PTLno nfFxjCBrWs3Qg1Dbj5M38TKBHvSg+eH3xtOeWhF4Jt6A/cj1llgacUgJmw1ZPZKb o2f2wmpySwHOTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=JtfKoXgdQsySC+wqA3EvZEGbKT206 fXwRBEwvFQJFvA=; b=Jh446iF/sJS9cwprYJeD2RTbGjyerdrdAhkazzxcP7s1o FqkCqV4mj+R/LLgBpxLew04c4DkAgooaeC3pwnxSP+lIe/w3dMNguLAFvgNdmnSj lv7Ip0atjxY3EGaVIBjTw4TbaQTLRLnOzFDINE7lT+xTzMqPDQCyXiq/M+dpriZk nu458Af6AbcOnxqkIbc7EgT4c6g5YAdB2Bxxnqnlk7Iren0eIU2ZdkVVRcz4RyFa Ay/JlNMOUmuvqBCKgfbpJuW3cg0SiaF4sFy+nXtmwuiBVWRqcALglD0Ei8MVuGR4 tRdCK6vFMGx7wEkI9mKMCgaMl7Ejq7orgJWLh8FXQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgeekgdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesghdtreertddttd enucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheqnecu kfhppeekgedrudekgedrvddvgedrudehtdenucfrrghrrghmpehmrghilhhfrhhomhephh hisegrlhihshhsrgdrihhsnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (p54b8e096.dip0.t-ipconnect.de [84.184.224.150]) by mail.messagingengine.com (Postfix) with ESMTPA id B27E98005A for ; Thu, 3 Oct 2019 07:16:06 -0400 (EDT) From: Alyssa Ross To: meta@public-inbox.org Subject: public-inbox-init with minimal info Date: Thu, 03 Oct 2019 11:16:01 +0000 Message-ID: <87bluyhyfi.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: --=-=-= Content-Type: text/plain In NixOS, the best way for us to provide a public-inbox module would be to generate the configuration file ahead of time, and then initialize inboxes that don't already exist at some reasonable time during boot. public-inbox-init tries to write a config file in addition to initializing an inbox. My initial idea was to just eschew public-inbox-init for doing git init --bare myself, which works great for V1 repositories, but I'd really like to be generating V2 ones. Since the V2 initialization isn't encapsulated in one easy command, I'm wondering what the best way to accomplish initialization without writing a config file or asking for unnecessary information is. I could just run public-inbox-init with PI_CONFIG=/dev/null, but then it's still not clear to me what information about the mailbox the script requires to be able to initialize the mailbox. Looking at the code, I see that at least the primary address is passed to PublicInbox::Inbox, but I'm not sure what that would actually be used for inside the inbox. So, what would the best thing for me to do here be? To summarise, I'd like to generate V2 inboxes while providing as little information about the inbox as possible, and without writing a config file. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAEBCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAl2V2HEACgkQ+dvtSFmy ccAfpA/4544bewen0SMvMSY2BhHlfV0vrkOt2XqVbsUfSNjMSTWNRs/oB6Gx+O4u X7bgk2OC5jDbuM5KtIb2POFCdLF/dET2USBWAOHKAob9WcMThFXb1WJOGHeJZHlz V65Jse9CnAzvn/vmMo7RBKDMcIxMVGMnQZyq5acKi8YdL0XMpWFWpABVySCtaGNJ vRbaUv7w8dLzPC3qJGgNKHC6SmU91i7j00rc/fQEDNg5E1J7VJnWqEW1aDaU01Hd EuAlU5hNcrZTbg/swuvP1UZ3YtddZTDP8lCA5lEVCE7BNsDYjdXVaUQ0hcVx6j+P bsBXBSEgQrQ/65mPbVR542SskpIlm8NKyri3OORCk0iqoFOSafQgeFaDFriIBxsX ERciIHT3nxW1ixtt/AdZhUZE+e7jJj24FpiSmR4d/qKiCSE93mCQ64bUEQyQKRqc IIVxt06W0pbGl25Uuapogic8pGRI3q9CyvGnV1gs5WqClk7ZMyGVd6o9cEn9o73H z8R4mhp9y5YB770JGIWpoVagnmOsm0dPDMcbmYtvPkD7h/9WgYnrTbysaMpO8Zbz dx4gcshqkylVvq5kO4TtezsAAgPiiYfKKJ0/PKIduFHIzvcbYgH3UzA7ME5YdJXl MQiygPetOMmRuk55YuKvHl4yN9SgafwStrYW3gJiX5iOFQEPDQ== =PAa7 -----END PGP SIGNATURE----- --=-=-=--