Hi all,
i'm using imapStore to make connection to imap server each time for processing. So far, i dont get any error "bye..imap.." etc
store = new com.sun.mail.imap.IMAPStore(session, new URLName(pop3Account.getServerName()));
store.connect(pop3Account.getServerName(), pop3Account.getServerPort(), pop3Account.getUsername(),pop3Account.getPassword());
I have a thread at the background that connect to imap and push email using "idle" . I keep on getting "bye..imap" for this thread. Aren't "imapstore" automatically ensure only one connection make to each folder? If yes, why i still getting "bye..imap"..error ? By the way, i use the above code to make connection and I dont store.close connection .