Importers: Do not read whole file into memory
I am using Linux Mint 20.2 with Evolution version 3.36.5-0ubuntu1.
I have Mbox file of my emails (exported using Evolution itself). The Mbox file size is about 14 GB.
When I try to import it using File --> Import --> Import single file --> Select filename ABC.mbox --> Open
As I press Open , my RAM starts flooding until it is entirely consumed by evolution process. Also using HTOP in terminal, I have confirmed that multiple evolution processes appear (around 10-15) and starts eating away memory (I have 16 GB RAM) until the machine is manually switched off. It takes about 30 seconds to flood up RAM and hang the computer.
The same Mbox file however is imported in Thunderbird without any problem in a matter of few minutes without crashing the computer. Thus there is no issue about corrupt Mbox file.
HOWEVER, I have tested evolution with other much smaller Mbox file (around 10 MB size). It gets imported flawlessly within few seconds.
Thus I feel there is a issue with IMPORTING and memory management with handling of LARGE Mbox file.
I have tried the same with 3 more installations with Linux Mint 18.3, 19.3, and 20.2 ... Everywhere results were identical (small Mbox gets imported while LARGE Mbox file causes computer to HANG and CRASH ... Physical POWEROFF is required to restart)
TEAM EVOLUTION ... please fix it ASAP and push the updated version in Linux Mint 20 Repo.
I really don't like using Thunderbird.