reformime is a command (from the
maildrop package on Debian/Ubuntu) which can be used to extract the body of an email file.
You can get a list of MIME parts with
reformime -i <your-message which gives you something like
And then you can extract a section with
reformime -e -s 1.1 e.g. this would extract the plain text version (1.1). Likewise, if section 1.2.3 is an image you could view it like
reformime -e -s 1.2.3 <mail.eml | display :-
So if you just want to see the plain text version you can 'easily' do it with a handy one-liner:
reformime -e -s $(reformime -i <$F | fgrep -B1 'content-type: text/plain' | head -n1 | cut -c 10- ) <$F
This is not quite the easy option I'd hoped to find, but thought I'd document it anyway!