I'm in the cur folder of a maildir store. I want to cat a message .. pipe it to a command .. and have the body of the message spit out. Simple.
Example: If its a mime message .. and there is a plaintext version .. show me the plaintext .. If its an HTML message with no plaintext .. then render the HTML and give me some semblence of the message text ... If its just an image ... display nothing .. or maybe an [image] placeholder ..
Why do I want this? I'm trying to train spamassassin .. and I want to spit out key headers and an excerpt from the email body so I can quickly skim through all the messages and decide which ones are legit, which are ham, and which are spam ... I am already extracting a list of messages from the maildir that match a given X-Spam score .. and am displaying the headers I want .. I just need to append the body of the message .. but hit a roadblock
Some other questions here suggested using mutt. I installed that and looked at it - but from what I could see - I'd have to point it to the specific maildir .. which is going to complicate the process .. ideally I'd like something that just "interprets" an email message from a file and displays it
Your help is appreciated. Thank You