Reading Exchange Mail with Java
Many times I’ve had to sweep an inbox and do something with the email. Typically the easiest way is to use IMAP, but our corporate email server has IMAP disabled. Fortunately 2007 Microsoft Exchange has had a rich web service interface so I wanted to give that a try. One of the main patterns used is to read an email and then move it to something like an ‘archive’ or ’error’ directory. Exchange supports arbitrary message properties such as ‘category’ and even custom properties, so adding a category tag of “processed” seems like a good idea. I wanted to experiment a bit. ...