This commit is contained in:
M66B 2021-06-25 20:02:13 +02:00
parent 4b0a72d222
commit eef485e63e
1 changed files with 3 additions and 1 deletions

View File

@ -2273,7 +2273,9 @@ class Core {
// Get messages
Message[] imessages = ifolder.getMessages();
List<TupleUidl> ids = db.message().getUidls(folder.id);
int max = (account.max_messages == null ? imessages.length : account.max_messages);
int max = (account.max_messages == null
? imessages.length
: Math.min(imessages.length, account.max_messages));
EntityLog.log(context, folder.name + " POP" +
" device=" + ids.size() +