Added idle restart for Outlook

This commit is contained in:
M66B
2022-09-02 12:28:38 +02:00
parent fd2ab14150
commit c720458e9d
4 changed files with 28 additions and 0 deletions

View File

@@ -329,6 +329,10 @@ public class EmailService implements AutoCloseable {
properties.put("mail." + protocol + ".allow8bitmime", Boolean.toString(value));
}
void setRestartIdleInterval(int seconds) {
properties.put("mail." + protocol + ".restartidleinterval", Integer.toString(seconds));
}
// https://tools.ietf.org/html/rfc3461
void setDsnNotify(String what) {
properties.put("mail." + protocol + ".dsn.notify", what);