title: Email processing with NodeJS
body: <p>I'm writing a Node application which among other things needs to receive email and process it so that it can be rendered in a Web page (as happens in Web mail, list archives, etc.). I've got the receiving part covered with Haraka (<a href="https://github.com/baudehlo/Haraka" rel="noreferrer">https://github.com/baudehlo/Haraka</a>). From there to storing the received emails in Mongo is easy, and so long as they're plain text I can display them.</p>
  
  <p>The part I'm missing is handling the rather involved varieties of ways in which email content can come, including alternatives, HTML, attachments, inlined images, and much more. That's a rather steep amount of functionality to have to put together, and I can't seem to find a JS library that will do it for me. Given the number of libraries out there and the speed at which new ones are added, it might just be that I've missed it — so pointers welcome!</p>
  
  <p>And failing that, if I were to port an existing library for this over from another language, which one(s) would you recommend I look at?</p>
  
  <p>Thanks!</p>