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

@@ -570,6 +570,10 @@ public class ServiceSynchronize extends LifecycleService {
// 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");
}
// Create session
final Session isession = Session.getInstance(props, null);