1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00
This commit is contained in:
Andrew Chen 2013-01-07 22:11:04 -08:00
parent 9c5a11eacf
commit d4eae05630

View File

@ -82,20 +82,26 @@ public abstract class Folder {
public abstract Message getMessage(String uid) throws MessagingException;
public abstract Message[] getMessages(int start, int end, Date earliestDate, MessageRetrievalListener listener)
throws MessagingException;
/**
* Fetch the shells of messages between a range of UIDs and after a given date.
* @param start UID sequence start
* @param end UID sequence end
* @param earliestDate Date to start on
* @param listener Listener to notify as we download messages.
* @return List of messages
* @throws MessagingException
*/
public abstract Message[] getMessages(int start, int end, Date earliestDate, MessageRetrievalListener listener) throws MessagingException;
/**
* Fetches the given list of messages. The specified listener is notified as
* each fetch completes. Messages are downloaded as (as) lightweight (as
* possible) objects to be filled in with later requests. In most cases this
* means that only the UID is downloaded.
*
* @param uids
* @param listener
* @param listener Listener to notify as we download messages.
* @return List of messages
*/
public abstract Message[] getMessages(MessageRetrievalListener listener)
throws MessagingException;
public abstract Message[] getMessages(MessageRetrievalListener listener) throws MessagingException;
public Message[] getMessages(MessageRetrievalListener listener, boolean includeDeleted) throws MessagingException {
return getMessages(listener);