Browse Source

Allow malformed addresses

main
M66B 6 years ago
parent
commit
113e8445b3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -109,6 +109,7 @@ public class ServiceSynchronize extends LifecycleService {
System.setProperty("mail.mime.ignoreunknownencoding", "true");
System.setProperty("mail.mime.decodefilename", "true");
System.setProperty("mail.mime.encodefilename", "true");
System.setProperty("mail.mime.address.strict", "false");
}
@Override
@ -221,7 +222,7 @@ public class ServiceSynchronize extends LifecycleService {
private void reportError(String account, String folder, Throwable ex) {
String action = account + "/" + folder;
if (!(ex instanceof IllegalStateException) &&
if (!(ex instanceof IllegalStateException) && // This operation is not allowed on a closed folder
!(ex instanceof FolderClosedException)) {
NotificationManager nm = getSystemService(NotificationManager.class);
nm.notify(action, 1, getNotification(action, ex).build());


Loading…
Cancel
Save