Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Mail

Status
Not open for further replies.

pen81

Programmer
Oct 27, 2004
62
GB
I am developing an application using JavaMail. The program scans a mailbox from MS Exchange Server and processes each item.

I need a simple way of determining whether an item has been processed already (rather than using a database or file to record this, I was hoping to interact with Exchange in some way)
 
Can you check is the element is read or move it to a "Processed" folder?

Cheers,
Dian
 
Exchange does support several ways of interaction, even full SOAP/XML WebServices since Exchange Server 2007 (Partial in Exc2003). Older versions you can access using WebDAV. All versions have the ability to set up the OWA (Outlook Web Access) connector, that can also be accessed from applications (as long as you're not using ISA server to enhance protection).

Another way is to interact with a local Outlook installation, using the OLE object model available. You need a user-session running, and Outlook loaded and logged in, though, to have that working. (Did that on a temporary in-house solution using VS2008/C#/.NET 2.0/Outlook 2007, this has the easiest implementable object model ;-))

HTH
TonHu
 
Thank you for your comments

I was using POP but have now configured my server to use IMAP, and so have access to the full folder structure within the mailbox. I can therefore move mail items to another folder once processed, as suggested

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top