title: How can receive emails in Java based system preferably with spring?
body: <p>I have looked up Google and Spring documentation but can not find any thing on receiving emails.</p>
  
  <p>I need to build a client (kind of not fully blown client) that can receive emails from POP3 and IMAP. I am already using Spring in the project so preference is Spring.</p>
  
  <p>Lots of links point to James but while it does look like a good project does not provide enough documentation and I am not even sure it does what I am after i.e just a small client that is able to to receive emails.</p>