You want mh (mail handler) or perhaps a modern variant. I haven't used it in over a decade, but it's totally command line. Messages are actually files and folders are directories, so there's no need for FUSE or any wierd hacks like that. And there's a pretty decent emacs mode.