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-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0F86C1F66E for ; Fri, 4 Sep 2020 21:50:05 +0000 (UTC) Received: by mail-qv1-xf2c.google.com with SMTP id db4so3809472qvb.4 for ; Fri, 04 Sep 2020 14:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=EIopD9N/KtJeTF+lerVy5/NdOztz0PwHdcn/5ZRZcw0=; b=DPaFGYxR5PYLT/8/IZu2Epayhg2S9YMmLki54U3hqiiXZIeyycvIlWgKpu8liMXoR4 jWv6ucS30gMjJo/aZwFnCAXaL/kNyU0bNEkOVKvHhrQAw9lY8tqJVNm6Azc/mEuuQ7I4 J5uEsh9EH94SHXCgjBG4S/I8v30E0rq4OtdSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=EIopD9N/KtJeTF+lerVy5/NdOztz0PwHdcn/5ZRZcw0=; b=EIVWJ5VkmsaDNnQfxjDIHt9i8hj99/2QQYfl8xvhRfyhC/HFNY2GtvJahyo63ezlLZ oicvR5udwBk7kl3RRVwZL14GKq1gVYVy3orDhyO0hmthVHrjl2V8Eof52lW3U+3QCkbm yR3Y9gChMr9LKIYlLukujFGLcFv2c7f8LXtlBe1KzrcalwybNNH6ZHYOWj44R4Owq2wB BqUBIvzjpmnXvVSr2gnkWIhIreE3DGlWgcTh2Mq8ekQ+B3GI/+J4Et4yyLXGMhUQo2me aGTLlPoKvp1o/OLNehluGsStygpsKahfcTSodUGJH8H31YIPvFRXY7VYccNSKJtUHo3I HTIw== X-Gm-Message-State: AOAM532J++pE4rgmUtjDozQYe1mUw89r0P7AOuiwMp4K1LR1fHggEaRL wV12/rr9m+UguwyMwNmbtKmACQ== X-Google-Smtp-Source: ABdhPJwp4FOAA2qdzWjhTItKgIK6Bj+QZQAsf3GwwMOIrTI7p1jk8fhxIqm4tqH1HlY1zbc0WDSAtQ== X-Received: by 2002:a0c:d6cf:: with SMTP id l15mr9606453qvi.164.1599256202953; Fri, 04 Sep 2020 14:50:02 -0700 (PDT) Received: from chatter.i7.local ([89.36.78.230]) by smtp.gmail.com with ESMTPSA id f3sm5383653qth.56.2020.09.04.14.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 14:50:02 -0700 (PDT) Date: Fri, 4 Sep 2020 17:50:00 -0400 From: Konstantin Ryabitsev To: Simon Eigeldinger Cc: meta@public-inbox.org Subject: Re: Converting Public-Inbox archived messages into mbox Message-ID: <20200904215000.eu2tta2b7nckycf5@chatter.i7.local> Mail-Followup-To: Simon Eigeldinger , meta@public-inbox.org References: <22947b1d-4728-30fa-ee96-fbd31496c0e6@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <22947b1d-4728-30fa-ee96-fbd31496c0e6@gmx.at> List-Id: 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