From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IA/LFL5wdWMsCQAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 00:22:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WKfEE75wdWMkFAAAG6o9tA (envelope-from ) for ; Thu, 17 Nov 2022 00:22:38 +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 00F412C6FF for ; Thu, 17 Nov 2022 00:22:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovRjT-0007LV-Uk; Wed, 16 Nov 2022 18:22:15 -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 1ovRjQ-0007Jt-2a for help-guix@gnu.org; Wed, 16 Nov 2022 18:22:13 -0500 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovRjO-0008BA-2l for help-guix@gnu.org; Wed, 16 Nov 2022 18:22:11 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b453cf57; Thu, 17 Nov 2022 00:22:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h= mime-version:date:content-type:content-transfer-encoding:from :message-id:subject:to:in-reply-to:references; s=20190914; bh=Q9 l1pujZ6Fq1xclgPfy+bGSHkTFauE4wqvjK5ZG5G2Y=; b=PU81gAAgU8FUXRuKaf cZp9EhlOZn6hbOiuhhMoXNLQShzhj3sUhG6BbYxmhncByxQLq5LbPSBz8DhidBNB NE+AfqRcdj61hMqOceVCG7f6mgaN/0rDu3XF3j47hCpsvLSSNd8T+5arHDgnPjOo kWlhI4Ur36T8x61cHIp4w0LR/lcYM/qosX6v0SAkyPz0jS8H/VYM87A4TWy+649G ok/JCDw2IMKvnzICBB8eU/JqLDZnfvWNyEsPIHS02XaqsK/LJ4RWkvCTQTy9uAOa WV2sRUwQG3G7JIpuI1lk/irZXWO6f8MShSA5SjBVRiZPuuPBktUoM0PRNyQ/2gg+ xE6Q== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id adc9a136; Thu, 17 Nov 2022 00:22:07 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 1a78d330; Thu, 17 Nov 2022 00:22:06 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id cd9d13a9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 17 Nov 2022 00:22:06 +0100 (CET) MIME-Version: 1.0 Date: Wed, 16 Nov 2022 23:22:05 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.16.0a From: jbranso@dismail.de Message-ID: Subject: Re: This is how you import a mailing list archives (e.g. guix-patches) into mu4e To: "Mekeor Melire" , "help-guix" In-Reply-To: <878rka8pcj.fsf@posteo.de> References: <878rka8pcj.fsf@posteo.de> Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de 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_NONE=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=1668640958; h=from:from:sender:sender: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:dkim-signature; bh=HjqWAjHFRlIHqI2jAz061TSWOLlOCURI3Ie7N9Q0iS8=; b=rYI0D0XP0InfPguDuxhhUZcQrw4u4kp7AgUUiODsm1qXrltmS8Rfy2+M5wz4DvKaZ/BuLd ejOD1kHGV7mIkHuDl2ewW3PIxwrGTfmFdbrIZWR8GxXUgp2lvyh/t8Ykb3ejjK/hKWCZlr 1mx1mVWD96li0F4UjqGQiyH2DU8ouHgyk8yN7dmtDsVGfH+qUGObc1beQmgaYjqaWPjVHQ +Yz9IlFrftzLZrpIwhhF20uVp93w5o7w0Q8ICXtqsyQxZ3tLwbrlmqTF6g00GyOzj3+6O7 7JtgQmJ2joeRA50VAMX0tiONshkazYFJLYhpPry5arq0fzfPBD/0US7UUOm3Ew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668640958; a=rsa-sha256; cv=none; b=kDcAWrAnI5Ft1Z18AOeQ6MsHJc5eN6FKownOhlGfipfbz3NnXWxu9NsWhNz5t4q+skvvLv m04CmS2dSgj+XhfXpkhVzWT4W2HszHGgFJLZSHdBywCur4iZzoffU3E5A2XN/b/IhOpLzP tmS3M5f8rsibkOLtLKBQnCaQM0Qlu0U4qNnfBJZh9Vg6b6us2QlILyDlFBMc9keBbGIIZ9 UfnHRoEcoabZfEYW7WICZq5DUIHEYX8ygXx5ke6Frs6a7sCqFGkAq2IgNmOEu206EIC5Io EqaiVwGITKZ/NrC6FZdGGGpPNdRp8NSNGbGjVY6nOUZFvnqO+w+gZBCo+x2I1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=PU81gAAg; dmarc=pass (policy=reject) header.from=dismail.de; 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: -8.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=PU81gAAg; dmarc=pass (policy=reject) header.from=dismail.de; 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: 00F412C6FF X-Spam-Score: -8.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2U1oybJNnch9 November 16, 2022 6:15 PM, "Mekeor Melire" wrote: > Hello Guix, >=20 >=20you might want to import a mailing-list-archive into mu4e. E.g. becau= se > debbugs.el is slow, you might want to import the archives of the > guix-patches mailing list. This is how to do so. Hey thanks for sharing! How about we make this guide a bit more permanent= ? Would you mind writing this up and including it in the guix cookbook? Once you submit the patch, please CC me. I'll review it for you. Thanks again! Joshua >=20 >=20First, download the archives as in the "mbox" format -- the only form= at > that Mailman offers: >=20 >=20--8<---------------cut here---------------start------------->8--- > cd ~/some/where > for y in {2017..2022}; do > for m in {01..12}; do > curl --fail "https://lists.gnu.org/archive/mbox/guix-patches/$y-$m" > "= $y-$m" || rm "$y-$m"; > done; > done > --8<---------------cut here---------------end--------------->8--- >=20 >=20Now, download and run a perl-tool named "mb2md" to convert the mboxes > into maildirs: >=20 >=20--8<---------------cut here---------------start------------->8--- > mkdir tool maildir > curl http://batleth.sapienti-sat.org/projects/mb2md/mb2md-3.20.pl.gz \ > --output tool/mb2md.pl.gz > gzip -d tool/mb2md.pl.gz > chmod 755 tool/mb2md.pl > guix shell perl perl-datetime perl-timedate > for f in $(realpath ./mbox)/*; do > perl tool/mb2md.pl -s "$f" -d $(realpath mailbox); > done > exit > --8<---------------cut here---------------end--------------->8--- >=20 >=20Next, you might want to mark all mails in that maildir as "read": >=20 >=20--8<---------------cut here---------------start------------->8--- > guix shell mblaze > mlist -s ./mailbox | mflag -S > exit > --8<---------------cut here---------------end--------------->8--- >=20 >=20Finally, move that maildir to its destination: >=20 >=20--8<---------------cut here---------------start------------->8--- > mv maildir ~/path/to/maildirs/guix-patches > --8<---------------cut here---------------end--------------->8--- >=20 >=20Enjoy!