From 113e8445b375302723a20d119f8bc1d10073fdd0 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Aug 2018 09:17:46 +0000 Subject: [PATCH] Allow malformed addresses --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 483bef0b..00211b4f 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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());