Instant receiving IMAP mail based on JavaMail for Android
I need this for a mail application and i want to be notified when there is new mail and when flags are changed.
The class should run in the background and even when the app is closed.
Please note that i do not want it to do it with periodic polling.
void folderMessagesAdded(MessageCountEvent e) {
[login to view URL]("+++ TFMA + " + [login to view URL]() + " ");
Message[] msgs = [login to view URL]();
FetchProfile fp = new FetchProfile();
[login to view URL]([login to view URL]);
[login to view URL](msgs, fp);