From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mFL1FWj0j2M1TgAAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 03:03:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iDH6FGj0j2MKpQAAG6o9tA (envelope-from ) for ; Wed, 07 Dec 2022 03:03:20 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F3888463E1 for ; Wed, 7 Dec 2022 03:03:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2jlx-0006y3-N3; Tue, 06 Dec 2022 21:02:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2jlr-0006xo-0A for help-guix@gnu.org; Tue, 06 Dec 2022 21:02:51 -0500 Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2jlo-0004IA-Dt for help-guix@gnu.org; Tue, 06 Dec 2022 21:02:50 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1670378564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XnQ/1TjWPLwWw6w9WyJy05wFT9cP0HJ47maUQqkeHkc=; b=PY8bvrYNIMOrx0gYjKLlzc2zI/eFXtaZzSDfNwkgXWExdpNaeeamhpVEgeZJsQ6tVhwyKT 4VoUOj+qrBADFLnvLPCBDIGIGKprXeVDDdw4X2Aoe0ICqtrsePIksUgDrrI0dO9sy2ljP1 ch1lJ1ZSHMS4wnE/82SyuFC9XeuZAqfYDju3em7jupK7JBp5d+h52UL6BOyKUb7V/vUM8e 3LFh8CHjgO2I+D/lwLJlmpzVHVRlVqOrqTqXYCuvVjTsptMouuzYKUPSGhwC2kcg28bMTV FXm/W2vFAE77v7BsXnKJKsADX/J7AvbQDGEl6Ce7tGw+RhNpdaHprwH5tWTazA== From: Kyle Meyer To: zimoun Cc: Mekeor Melire , help-guix Subject: Re: This is how you import a mailing list archives (e.g. guix-patches) into mu4e In-Reply-To: <86359skacd.fsf@gmail.com> References: <878rka8pcj.fsf@posteo.de> <864jua5jd6.fsf@gmail.com> <87y1rlfinp.fsf@kyleam.com> <86359skacd.fsf@gmail.com> Date: Tue, 06 Dec 2022 21:02:42 -0500 Message-ID: <87tu28ezst.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670378600; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=XnQ/1TjWPLwWw6w9WyJy05wFT9cP0HJ47maUQqkeHkc=; b=JJGn+JZpqPZDGTxVMEYZOYgs1j84hZs78CeLgTkzk9srOMQaftkPRyAMrxMgWz/Jse4Rjv z+HnSWG5zLoizuCfjOt8TuW5Gsv7ghrxXXA+o2DTgv0MqkUK+iuWEeMCd1tBwhEumRY4/5 TSg8q/zmVKZ3AmtQNy/pVX1aFJwwHvpBMOTkoiu3Gy8MqfJqCPjMNl4F/m4598X+G7+o7H +8b6v8DCXIEYo5pPQWHVLVfPjqYc/rQJb26V8BE2aC0VaHcOOubH/ubH9kccEjRNOqgqEO LvizMoS0odnVoYnl1kUYGGZ6f/sBdSb6lxIGW/hRnLBZOIBxQHNxpjCCOANscQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670378600; a=rsa-sha256; cv=none; b=r7mcJnhKcGms7UoF7cQe+UndOxDexBsqYnB6s1wyslwOEX0OqLviRYwmS0PKdmOOw1x4Rb PtdAKaZOY/63rzkVy9UZlh/2Ln2+nQrdK6L7LuZSrSx7XZp9rVgNVeCJaosdgb7JZq6yOw oKsSHt7Zd7EKlqo6eMe4Lxb9X0ooHJDjLscNfwBr9Usm3+SGePIPQHbVyhFxGvfvVE+Deq OLVgW9PAAs/8NO6nizovdBDvgg+AhgVDYGcZEsr4FnkF+KTLxQ0DeF8NE2k9JbrBsH5IfZ 8OdT4IW9+573rcLI/1NcHc/iBQayIs1TRY5p0DLb+gEj0OiNXIyfvD6dQOgQdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=PY8bvrYN; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=PY8bvrYN; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F3888463E1 X-Spam-Score: -7.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z2ASYJ7UmiFb zimoun writes: > I fetch from yhetil.org (Git) and then convert to MailDir because I use > Notmuch as indexer (and reader :-)). And I do not want to duplicate the > storage. Therefore, after fetching and converting, the Git repo is > garbage collected, > > --8<---------------cut here---------------start------------->8--- > echo $head > $gitdir/shallow > $git gc --quiet --prune=3Dall > --8<---------------cut here---------------end--------------->8--- > > https://gitlab.com/zimoun/my-conf/-/blob/master/.local/bin/sync-public-in= boxes.sh#L94-99 > > For instance, the current size of guix-patches on my machine is 152K > compared to the complete guix-patches Git repo of 277M. Nice. Maintaining a shallow clone certainly makes sense. > Well, I have not investigated much with =E2=80=99grokmirror=E2=80=99 and > =E2=80=99public-inbox-fetch=E2=80=99 and maybe it would also work smoothl= y with the same > trick; avoiding many manual plumbing. I haven't used it myself (unsurprisingly I have an interest in keeping yhetil.org's inboxes replicated on my local machine), but I think you can keep grokmirror clones shallow by hooking up its grok-pi-piper to the post-update hook. Here's a relevant bit from grokmirror's docs: --8<---------------cut here---------------start------------->8--- [DEFAULT] # To start piping public-inbox messages into your inbox, simply # install procmail and add the following line to your ~/.procmailrc: # DEFAULT=3D$HOME/Maildir/ # You can now read your mail with "mutt -f ~/Maildir/" pipe =3D /usr/bin/procmail # Once you've successfully piped the messages, you generally # don't need them any more. If you set shallow =3D yes, then # the repository will be configured as "shallow" and all succesffully # processed messages will be pruned from the repo. # This will greatly reduce disk space usage, especially on large archives. # You can always get any number of them back, e.g. by running: # git fetch _grokmirror master --deepen 100 shallow =3D yes --8<---------------cut here---------------end--------------->8---