roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.77k stars 1.62k forks source link

Support large MBOX file import #9222

Open simply-phil-1 opened 9 months ago

simply-phil-1 commented 9 months ago

As I understand it, you're uploading an entire file in one go (hence the dependency on php ini max post size/file settings) - this is NOT the way to go

I have a 4GB mbox file from the google that I am wishing to upload. Changing global memory/post settings so that these can be imported is a NO GO - it should never happen, or even be contemplated.

Instead, the file should be uploaded in chunks - 1 or 2MB at a time - then reassembled once the upload is complete. No php.ini setting changes required. This has the added side-effect of allowing huge uploaded to be resumed, and also the mbox file can be parsed while being uploaded,

alecpl commented 9 months ago

Well, it's doable, but not trivial. And hosts have various limits, hardware, software or policy.