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 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 01D521F453; Wed, 13 Feb 2019 22:31:47 +0000 (UTC) Date: Wed, 13 Feb 2019 22:31:47 +0000 From: Eric Wong To: Ali Alnubani Cc: meta@public-inbox.org Subject: Re: mailman mbox migration Message-ID: <20190213223147.gkutd24zxjpmmj43@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: Ali Alnubani wrote: > Hi, > > Hope this is the right place to post this. Of course :> > I'm trying to migrate archives from a Mailman instance (v2.1.15). The format of the archives is mbox format. For Mailman, Konstantin posted some scripts he used for kernel.org + Mailman the other day: https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git Specifically: https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git/tree/list-archive-maker.py > How do you suggest I do that? It seems that public-inbox only supports maildir format. Do I need to convert my mbox files to maildir to be able to import them? > Or is there an easier way to achieve this (i.e. mbox support from public-inbox)? For regular mboxrd and mboxo (not mangled by Mailman), you can look into adapting scripts/import_vger_from_mbox Apparently, I did add support for importing mboxrd/mboxo formats in the PublicInbox::InboxWritable::import_mbox subroutine (which is used by import_vger_from_mbox). mboxcl isn't supported, yet (and I've seen some really scary mboxcl with multiple Content-Length headers, and >From escaping to boot; so I'm not sure if that's a route I want to take...)