I think each msg starts with *Return-Path:* so I guess I need to insert an extra line at the start of each msg...
A simple sed script should suffice to convert each msg. Do I just need to insert '*From *' as the first line of each msg? On Tue, Jun 14, 2016 at 5:06 PM, Mark Sapiro <m...@msapiro.net> wrote: > 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@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 <m...@msapiro.net> The highway is for gamblers, > San Francisco Bay Area, California better use your sense - B. Dylan > ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org