How do I intercept emails?
<p>The stuff is obvious but not as simple. I need to build a simple as possible "automated email client" that will act as a reader for a certain email address: extracting attachments, inserting stuff into a database, interpreting content etc. My problem is, how to hook these emails, how to intercept them?</p>

<p>I'd prefer java solutions/recommendations.</p>

<p>Thanks</p>
