[Mailman-Users] Importing archived msgs into a Mailman list

Mark Sapiro mark at msapiro.net
Tue Jun 14 12:06:20 EDT 2016


On 06/14/2016 12:36 AM, John Poltorak wrote:
> I have managed to obtain all the msgs as individual files. I'm not  sure
> of the mbox format, but hopefully I can create it... Isn't it just a
> concatenation of all the individual files as a single file? There's
> probably more to it, but hopefully it is doable without too much difficulty.


A .mbox is not quite the concatenation of the individual messages. I
have attached an excerpt of a .mbox file with two messages. The key is
that the first line of each message is a 'From_' separator that looks like

'From email at address date'

It begins literally with 'From ' and no other lines in the mbox begin
with these 5 characters - this is why you sometimes see lines in the
body of an email that begin 'From ' escaped by inserting '>' as in
'>From '. For the purposes of bin/arch, the actual contents after the
leading 'From ' are not important, but in general, there should be an
email address representing the envelope sender of the message and a date
in the format of the example. See, e.g.,
<https://en.wikipedia.org/wiki/Mbox>.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
-------------- next part --------------
From mark at msapiro.net  Wed Jun 19 14:35:45 2013
Return-Path: <mark at msapiro.net>
X-Original-To: list1 at msapiro.net
Delivered-To: list1 at msapiro.net
Received: by msapiro.net (Postfix, from userid 1000)
 id 918F54C0E07; Wed, 19 Jun 2013 14:35:45 -0700 (PDT)
Date: Wed, 19 Jun 2013 14:35:45 -0700
From: Mark Sapiro <msapiro at ccsf.edu>
To: list1 at msapiro.net
Message-ID: <20130619213545.GA3859 at msapiro.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: [List1] Test 3
X-BeenThere: list1 at msapiro.net
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <list1.msapiro.net>
List-Unsubscribe: <http://msapiro.net/mailman/options/list1>,
 <mailto:list1-request at msapiro.net?subject=unsubscribe>
List-Archive: <http://msapiro.net/pipermail/list1/>
List-Post: <mailto:list1 at msapiro.net>
List-Help: <mailto:list1-request at msapiro.net?subject=help>
List-Subscribe: <http://msapiro.net/mailman/listinfo/list1>,
 <mailto:list1-request at msapiro.net?subject=subscribe>
X-List-Received-Date: Wed, 19 Jun 2013 21:35:45 -0000

Wow

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

From mark at msapiro.net  Wed Jun 19 14:36:25 2013
Return-Path: <mark at msapiro.net>
X-Original-To: list1 at msapiro.net
Delivered-To: list1 at msapiro.net
Received: by msapiro.net (Postfix, from userid 1000)
 id D095C4C0E07; Wed, 19 Jun 2013 14:36:25 -0700 (PDT)
Date: Wed, 19 Jun 2013 14:36:25 -0700
From: Mark Sapiro <msapiro at ccsf.edu>
To: list1 at msapiro.net
Message-ID: <20130619213625.GB3859 at msapiro.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: [List1] Test4
X-BeenThere: list1 at msapiro.net
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <list1.msapiro.net>
List-Unsubscribe: <http://msapiro.net/mailman/options/list1>,
 <mailto:list1-request at msapiro.net?subject=unsubscribe>
List-Archive: <http://msapiro.net/pipermail/list1/>
List-Post: <mailto:list1 at msapiro.net>
List-Help: <mailto:list1-request at msapiro.net?subject=help>
List-Subscribe: <http://msapiro.net/mailman/listinfo/list1>,
 <mailto:list1-request at msapiro.net?subject=subscribe>
X-List-Received-Date: Wed, 19 Jun 2013 21:36:25 -0000

abcdef

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list