Bullet proofing to make IMAP fetches not break when folders have insane

default visible limits.
This commit is contained in:
Jesse Vincent 2010-06-08 02:37:18 +00:00
parent 845cd2a4da
commit 87a567ea40

View file

@ -1129,6 +1129,11 @@ public class MessagingController implements Runnable
int visibleLimit = localFolder.getVisibleLimit();
if (visibleLimit < 1)
{
visibleLimit = K9.DEFAULT_VISIBLE_LIMIT;
}
Message[] remoteMessageArray = new Message[0];
final ArrayList<Message> remoteMessages = new ArrayList<Message>();
// final ArrayList<Message> unsyncedMessages = new ArrayList<Message>();