all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jbranso@dismail.de
To: "Mekeor Melire" <mekeor@posteo.de>, "help-guix" <help-guix@gnu.org>
Subject: Re: This is how you import a mailing list archives (e.g. guix-patches) into mu4e
Date: Wed, 16 Nov 2022 23:22:05 +0000	[thread overview]
Message-ID: <eca17916f51b781fb991d51ce50d28c8@dismail.de> (raw)
In-Reply-To: <878rka8pcj.fsf@posteo.de>

November 16, 2022 6:15 PM, "Mekeor Melire" <mekeor@posteo.de> wrote:

> Hello Guix,
> 
> you might want to import a mailing-list-archive into mu4e. E.g. because
> 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

> 
> First, download the archives as in the "mbox" format -- the only format
> that Mailman offers:
> 
> --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---
> 
> Now, download and run a perl-tool named "mb2md" to convert the mboxes
> into maildirs:
> 
> --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---
> 
> Next, you might want to mark all mails in that maildir as "read":
> 
> --8<---------------cut here---------------start------------->8---
> guix shell mblaze
> mlist -s ./mailbox | mflag -S
> exit
> --8<---------------cut here---------------end--------------->8---
> 
> Finally, move that maildir to its destination:
> 
> --8<---------------cut here---------------start------------->8---
> mv maildir ~/path/to/maildirs/guix-patches
> --8<---------------cut here---------------end--------------->8---
> 
> Enjoy!


  reply	other threads:[~2022-11-16 23:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 23:04 This is how you import a mailing list archives (e.g. guix-patches) into mu4e Mekeor Melire
2022-11-16 23:22 ` jbranso [this message]
2022-11-16 23:41   ` Mekeor Melire
2022-12-04 20:16     ` Mekeor Melire
2022-12-05 15:39       ` Joshua Branson
2022-12-05  8:45 ` zimoun
2022-12-05 21:43   ` Mekeor Melire
2022-12-06 11:33     ` zimoun
2022-12-07  2:27       ` Mekeor Melire
2022-12-07 10:33         ` zimoun
2022-12-06  1:03   ` Kyle Meyer
2022-12-06 12:03     ` zimoun
2022-12-07  2:02       ` Kyle Meyer
2022-12-07 10:38         ` zimoun
2022-12-07  2:19     ` Mekeor Melire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eca17916f51b781fb991d51ce50d28c8@dismail.de \
    --to=jbranso@dismail.de \
    --cc=help-guix@gnu.org \
    --cc=mekeor@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.