From be415c6a5fd5a2e799d8e9bcac627a63483d90bb Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 9 Dec 2018 16:36:38 +0100 Subject: [PATCH] Silence boundary exceptions --- app/src/main/java/eu/faircode/email/ViewModelBrowse.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ViewModelBrowse.java b/app/src/main/java/eu/faircode/email/ViewModelBrowse.java index 1eb71b3a3b..1813b17354 100644 --- a/app/src/main/java/eu/faircode/email/ViewModelBrowse.java +++ b/app/src/main/java/eu/faircode/email/ViewModelBrowse.java @@ -25,7 +25,6 @@ import android.util.Log; import com.sun.mail.imap.IMAPFolder; import com.sun.mail.imap.IMAPMessage; import com.sun.mail.imap.IMAPStore; -import com.sun.mail.util.FolderClosedIOException; import java.io.IOException; import java.util.Arrays; @@ -35,7 +34,6 @@ import java.util.Properties; import javax.mail.FetchProfile; import javax.mail.Flags; import javax.mail.Folder; -import javax.mail.FolderClosedException; import javax.mail.Message; import javax.mail.MessageRemovedException; import javax.mail.MessagingException; @@ -203,10 +201,6 @@ public class ViewModelBrowse extends ViewModel { db.message().setMessageFound(message.account, message.thread); } catch (MessageRemovedException ex) { Log.w(Helper.TAG, "Boundary " + ex + "\n" + Log.getStackTraceString(ex)); - } catch (FolderClosedException ex) { - throw ex; - } catch (FolderClosedIOException ex) { - throw ex; } catch (Throwable ex) { Log.e(Helper.TAG, "Boundary " + ex + "\n" + Log.getStackTraceString(ex)); } finally {