com.google.sitebricks.mail.FolderObserver Maven / Gradle / Ivy
The newest version!
package com.google.sitebricks.mail;
import java.util.List;
/**
* Listens for IMAP folder events such as new mail arriving.
*
* @author [email protected] (Dhanji R. Prasanna)
*/
public interface FolderObserver {
/**
* Mail change notification in this folder. The client may now
* check for MessageStatuses.
*
* @param added the set of numbers of newly added messages, or null if none
* @param removed the set of numbers of just removed messages, or null if none
*/
void changed(List added, List removed);
}