javamail - How to read mail from particular user and between particular intervals(in days) in java using javax? -
i have used following line of code,
searchterm term = null; if (fromaddress != null) { fromstringterm fromterm = new fromstringterm(fromaddress); term = fromterm; }
...
session session = session.getinstance(pop3props, null); store store = new pop3sslstore(session, url); store.connect(); folder inbox = store.getfolder("inbox"); inbox.open(folder.read_only); message messages[] = inbox.search(term);
the above code not server purpose. search hangs while executing.
anyone has alternative??
thanks in advance.
Comments
Post a Comment