Bullet proofing to make IMAP fetches not break when folders have insane
default visible limits.
This commit is contained in:
parent
845cd2a4da
commit
87a567ea40
1 changed files with 5 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue