Added account setting to disable partial fetch

https://javaee.github.io/javamail/docs/NOTES.txt
This commit is contained in:
M66B
2019-06-14 18:29:17 +02:00
parent 56858282b9
commit f327b7b284
9 changed files with 1845 additions and 6 deletions

View File

@@ -256,6 +256,10 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
// Get properties
Properties props = MessageHelper.getSessionProperties(account.auth_type, account.realm, account.insecure);
if (!account.partial_fetch) {
props.put("mail.imap.partialfetch", "false");
props.put("mail.imaps.partialfetch", "false");
}
props.put("mail." + protocol + ".separatestoreconnection", "true");
// Create session