user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: Simon Eigeldinger <simon.eigeldinger@gmx.at>
Cc: meta@public-inbox.org
Subject: Re: Converting Public-Inbox archived messages into mbox
Date: Fri, 4 Sep 2020 17:50:00 -0400	[thread overview]
Message-ID: <20200904215000.eu2tta2b7nckycf5@chatter.i7.local> (raw)
In-Reply-To: <22947b1d-4728-30fa-ee96-fbd31496c0e6@gmx.at>

On Fri, Sep 04, 2020 at 10:40:24PM +0200, Simon Eigeldinger wrote:
> Hi all,
> 
> I know and I guess that has been asked a few times.
> Is it possible to convert a git repo with messages to a mbox file and
> how is that done?
> 
> According to the install guide for Public-Inbox you don't need to
> install the whole server instance but just use git clone or git fetch to
> get the repo.
> But it doesn't state what to do after cloning.

You can try using l2md:
https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git

If you don't want to go that route, you can also just do a very blunt 
thing like:

mkdir -p maildir/{new,cur,tmp}
for commit in $(git rev-list master); do:
  git show $commit:m > maildir/new/$commit
done
mutt -f maildir

-K

      reply	other threads:[~2020-09-04 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 20:40 Simon Eigeldinger
2020-09-04 21:50 ` Konstantin Ryabitsev [this message]

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

  List information: https://public-inbox.org/README

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

  git send-email \
    --in-reply-to=20200904215000.eu2tta2b7nckycf5@chatter.i7.local \
    --to=konstantin@linuxfoundation.org \
    --cc=meta@public-inbox.org \
    --cc=simon.eigeldinger@gmx.at \
    --subject='Re: Converting Public-Inbox archived messages into mbox' \
    /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

Code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).