Reading Mail Stored locally
1 posts in topic
Flat View  Flat View

Posted By:   Ashok_Naidu
Posted On:   Monday, September 10, 2001 02:41 AM

I am writing a program which retrives the mails from mail server onto the hard
disk of the client like outlook. But i dont know how read this mail.

Properties props = System.getProperties();

props.put("mail.pop3.host", host);

Session session1=Session.getInstance(props,null);

URLName url = new URLName("d: est");

Folder folder=session1.getFolder(url);

But gives an error Provider not found. Can i apply javamail to access mails stored
other then mail servers (i.e. without protocols).

Re: Reading Mail Stored locally

Posted By:   John_Zukowski  
Posted On:   Monday, September 10, 2001 12:18 PM

No. The JavaMail architecture requires a provider. You are more then welcome to create your own provider. And, you can use some that are already created that provide local storage. But, you must work with a Provider.
About | Sitemap | Contact