Explicitly set mail event scope to folder

This commit is contained in:
M66B 2018-12-02 15:12:52 +01:00
parent c81f052199
commit c926de08f0
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ public class MessageHelper {
static Properties getSessionProperties(int auth_type, boolean insecure) {
Properties props = new Properties();
props.put("mail.event.scope", "folder");
String checkserveridentity = Boolean.toString(!insecure).toLowerCase();
// https://javaee.github.io/javamail/docs/api/com/sun/mail/imap/package-summary.html#properties