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 <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@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/PPEFJQYXI7CN7ANTU46QQSDC3YFZNRH7/

This message sent to arch...@mail-archive.com

Reply via email to