
April 17, 2025
5:38 p.m.
On 4/17/25 10:20 AM, Mihai Moldovan wrote:
Now... is there a way to import mbox files into the prototype archiver? Looking around, I haven't found anything mentioning this. Since it's just using the Maildir format, I guess I could find a tool that unpacks messages from an mbox to a Maildir destination and get that done, but if mailman has some command to do that, it would be even better.
There is no Mailman command to do this, but a Python script is very simple. Something like
from mailbox import Maildir, mbox
mb = mbox('path/to/mbox', create=False)
md = Maildir('path/to/maildir', create=False)
for msg in mb:
md.add(msg)
mb.close()
md.close()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan