mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added account setting to disable partial fetch
https://javaee.github.io/javamail/docs/NOTES.txt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user