mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 14:03:10 +07:00
recreate a new imap session for each sync
This commit is contained in:
@@ -169,7 +169,7 @@ public class InboxService extends AbstractScheduledService {
|
|||||||
properties.put("mail.imap.writetimeout", 30000);
|
properties.put("mail.imap.writetimeout", 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
Session session = Session.getDefaultInstance(properties);
|
Session session = Session.getInstance(properties);
|
||||||
|
|
||||||
Store store = session.getStore("imap");
|
Store store = session.getStore("imap");
|
||||||
store.connect(ConfigUtil.getConfigStringValue(ConfigType.INBOX_USERNAME),
|
store.connect(ConfigUtil.getConfigStringValue(ConfigType.INBOX_USERNAME),
|
||||||
|
|||||||
Reference in New Issue
Block a user