title: Retrieve and parse emails from (POP3 or IMAP) mailbox in Symfony2
body: <p>I am looking for a package/bundle that can access an email inbox, retrieve the emails in the inbox and parse them (Sender Email, Subject, Body, Attachments) for processing in my Symfony2 application. The idea is a "helpdesk" where people can email a specific email address and a cron job will run through the email inbox and convert emails into helpdesk tickets (with attachments).</p>
  
  <p>Before anyone tells me to Google or something equally unhelpful, please note that I have spent over an hour on Google as well as gone over more than 100 StackOverflow threads looking for something that can help me with this. Most of the content involves sending emails and not retrieving them. I have built a pure PHP parser before and it was a nightmare (as almost every email client composes the emails a little differently).</p>
  
  <p>I found <a href="https://packagist.org/packages/lasso/mail-parser-bundle" rel="nofollow noreferrer">https://packagist.org/packages/lasso/mail-parser-bundle</a>, but it seems to only be for Zend. I have also found <a href="https://github.com/iJanki/MailMimeDecodeBundle" rel="nofollow noreferrer">https://github.com/iJanki/MailMimeDecodeBundle</a>, but it seems to still be a work in progress and there is no documentation to speak of. Additionally, I found <a href="https://stackoverflow.com/questions/9182364/correct-way-to-retrieve-mails-by-imap-in-symfony2">Correct way to retrieve mails by IMAP in symfony2</a>, but that looks just like the start of the nightmare I had last time when I built one from scratch.</p>
  
  <p>I would appreciate any suggestions or pointers from anyone who has implemented something similar or has been in a similar situation.</p>