mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
recreate a new imap session for each sync
This commit is contained in:
parent
6b940c4366
commit
d497fa8ed7
@ -169,7 +169,7 @@ public class InboxService extends AbstractScheduledService {
|
||||
properties.put("mail.imap.writetimeout", 30000);
|
||||
}
|
||||
|
||||
Session session = Session.getDefaultInstance(properties);
|
||||
Session session = Session.getInstance(properties);
|
||||
|
||||
Store store = session.getStore("imap");
|
||||
store.connect(ConfigUtil.getConfigStringValue(ConfigType.INBOX_USERNAME),
|
||||
|
Loading…
Reference in New Issue
Block a user