Hi, I want to convert my EML files into MBOX format and having too much data their. So, if anyone has any easy method for migrating all the data without any missing please share.
Hi, could it be that this thread was meant to be posted in the Proxmox Mailgateway (sub)forum?
Anyway, there are many tools out there if one searches, a lot of it shareware and maybe not to trustworthy.
A simple/stupid way to do it could be just using Thunderbird. There's a "import export tool" addon which is a UI for Thunderbirds build in capabillities to work with both formats. You can add it, and use it to import all your EML and export it as mbox.
I mean "mbox" is more or less just the EML files all inline, separated with an empty line and some escaping.
Python has a Mailbox module in the standard library, the following gist shows a pretty much complete example for your request: https://gist.github.com/kadin2048/c332a572a388acc22d56#file-emltombox-py
If you do not want to got the "Thunderbird" way and have a bit more flexible and lean solution. Both are OK, especially if it's only required to be done once, not often.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.