How do I fire events when new messages arrive in my Inbox folder?
John Zukowski You can attach a MessageChangedListener to the folder. Then in the listener, the public void messagesAdded(MessageCountEvent e) will be called when a message is added and public void messagesRemoved(MessageCountEvent e) will be called when deleted.
Now the bad news. This only works with IMAP, not POP3. With POP, messages can't be added to the folder while its open.