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-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D4CA91F4CE; Mon, 11 Apr 2022 20:36:47 +0000 (UTC) Date: Mon, 11 Apr 2022 20:36:47 +0000 From: Eric Wong To: Evan Gates Cc: meta@public-inbox.org Subject: Re: [PATCH] scripts: add script to export v1 inboxes to maildir Message-ID: <20220411203647.M756942@dcvr> References: <20220405230156.25449-1-evan.gates@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220405230156.25449-1-evan.gates@gmail.com> List-Id: Evan Gates wrote: > --- > > I'm pretty sure this is a gross misuse of the public-inbox format, and > as such will not be offended if you decide not to include this script. Heh, OK :) > I read the public-inbox README and liked the idea of the pull model. > I briefly scanned clients.txt but didn't easily figure out how I was > supposed to pull and read mail locally. Since the v1 format already > has a bunch of uniquely named files, that are themselves emails, > it was pretty simple to symlink them into a maildir format so I can > read them in my mail client. *gasp* cloning v1 w/o bare gets really ugly for larger inboxes. > As a followup to this abomination, what is the correct way to pull > and read mail locally? With v1.7.0+, the initial clone: public-inbox-clone https://try.public-inbox.org/test public-inbox-test public-inbox-index public-inbox-test # search for all messages >0 bytes from the last year until now: lei q -o /path/to/maildir -O public-inbox-test z:0.. rt:last.year.. # You can change "rt:last.year.." to any time range or leave it out, # but giant Maildirs get too slow for me. # periodic updates: make -C public-inbox-test update lei up /path/to/maildir > +# cd ~/lists > +# git clone https://public-inbox.org/meta public-inbox-meta > +# git clone https://public-inbox.org/test public-inbox-test "git clone" is fine for older versions, but --mirror (or --bare) is strongly encouraged since v1 inboxes can grow trees w/o bounds.