|
@ -242,7 +242,7 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
props.put("mail.imaps.peek", "true"); |
|
|
props.put("mail.imaps.peek", "true"); |
|
|
//props.put("mail.imaps.minidletime", "5000"); |
|
|
//props.put("mail.imaps.minidletime", "5000"); |
|
|
Session isession = Session.getDefaultInstance(props, null); |
|
|
|
|
|
|
|
|
Session isession = Session.getInstance(props, null); |
|
|
// isession.setDebug(true); |
|
|
// isession.setDebug(true); |
|
|
// adb -t 1 logcat | grep "eu.faircode.email\|System.out" |
|
|
// adb -t 1 logcat | grep "eu.faircode.email\|System.out" |
|
|
|
|
|
|
|
@ -658,7 +658,7 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
Session isession = Session.getDefaultInstance(props, null); |
|
|
|
|
|
|
|
|
Session isession = Session.getInstance(props, null); |
|
|
MimeMessage imessage = MessageHelper.from(msg, isession); |
|
|
MimeMessage imessage = MessageHelper.from(msg, isession); |
|
|
ifolder.appendMessages(new Message[]{imessage}); |
|
|
ifolder.appendMessages(new Message[]{imessage}); |
|
|
|
|
|
|
|
@ -718,7 +718,7 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
|
|
|
|
|
|
// Create session |
|
|
// Create session |
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
Properties props = MessageHelper.getSessionProperties(); |
|
|
Session isession = Session.getDefaultInstance(props, null); |
|
|
|
|
|
|
|
|
Session isession = Session.getInstance(props, null); |
|
|
|
|
|
|
|
|
// Create message |
|
|
// Create message |
|
|
MimeMessage imessage; |
|
|
MimeMessage imessage; |
|
|