Another option, hypothetical, is you export your emails to a common format like markdown (with embedded meta directly in each file; 1 per email or in a pair where the secondary file is the same name but stores meta only ie- in json) and then open them in any note-taking app or wiki or static site generator that works on markdown files (with some extent of configuration presumably, extra points if the app makes it sensible to easily organize your emails for optimal viewing). You could serve the files over HTTP, probably less hassle than running a secondary IMAP server, or alternatively you could sync them to your device(s) over ssh via git or zfs or an app like Syncthing.
However I see two ways to let my phone read old mail
1. Set up my own IMAP server at home and deliver email to it, then program some filter system to mimic what I'm doing in Thunderbird.
2. Access Thunderbird directory on my laptop over IMAP. That IMAP server would be on my laptop or (better) on some always on server at home that uses the same file format as Thunderbird. I would rsync it with my laptop.
I admit that number 2 is weird. Number 1 is the proper way but I have so little incentive to do it that I'll probably stick with my current setup forever.