title: How to parse emails and extract header and body part
body: <p>I have a email file, if I open it as a text file, I see lots of nuisance. And if I open it in a mail program such as Kmail I can see what I can say as a simplified email, with subject, from, to, date and body.</p>
  
  <ol>
  <li><p>I want to do the same in Java. Currently I'm reading the email file straight away and thus there are lot's of nuisance (HTML, etc) along with header fields and body.</p></li>
  <li><p>Further I also want to check if a message is Base64 encoded or not!</p></li>
  </ol>
  
  <p>Please guide me for these two things!</p>