I have started moving away from gmail and have started exporting my older e-mails via the takeout option. This generates .mbox files. I don’t really use any e-mail clients on my computer and do most of my e-mailing on my phone, so I don’t have a way of viewing/searching those files.
Therefore I was wondering if there is any selfhosted option for some kind of e-mail archive/viewer with decent search function that anyone can recommend? Specifically something capable of handling those .mbox files. I found a few projects that sounded promising, but they seemed either dead, weren’t setup for selfhosting or could only connect directly to the mailboxes. So I thought I’d ask here if anyone has experience with this, maybe some recommendations?
Also open to alternative approaches what to do with those files. I just would like to delete these mails from gmail entirely, but that requires I can search them with as much ease as I can on gmail with a local option.
Thanks!


it’s not FOSS (it is ‘free to use’ at home) or a ‘server’ application (it’s a windows application), but i just use mailstore home to create and update a local archive of a gmail account. its dot.net requirement is minimal (v4.8 or higher) but i have not yet tried to run it with wine, as i have a separate box that runs windows stuff.
https://www.mailstore.com/de/produkte/mailstore-home/
https://www.mailstore.com/en/products/mailstore-home/