|
@@ -287,6 +287,8 @@ public class EmailUtil {
|
|
|
props.put("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
|
|
|
props.put("mail.pop3.port", mailboxInfoDTO.getPort());
|
|
|
props.put("mail.store.protocol", mailboxInfoDTO.getProtocol());
|
|
|
+ props.put("mail.imap.partialfetch", false);
|
|
|
+ props.put("mail.imaps.partialfetch", false);
|
|
|
}
|
|
|
if (mailboxInfoDTO.getProtocol().equalsIgnoreCase(IMAP)) {
|
|
|
props.put("mail.store.protocol", "imaps");
|
|
@@ -298,6 +300,8 @@ public class EmailUtil {
|
|
|
props.put("mail.imap.starttls.enable", "true");
|
|
|
props.put("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
|
|
|
props.put("mail.imap.socketFactory.fallback", "false");
|
|
|
+ props.put("mail.imap.partialfetch", false);
|
|
|
+ props.put("mail.imaps.partialfetch", false);
|
|
|
}
|
|
|
return props;
|
|
|
}
|