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 <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/PPEFJQYXI7CN7ANTU46QQSDC3YFZNRH7/
This message sent to [email protected]