1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 06:20:26 +00:00

Handle decoding exception

This commit is contained in:
M66B 2022-05-05 10:22:55 +02:00
parent 316a4bcae8
commit fc6ba484bc

View file

@ -46,6 +46,7 @@ import com.sun.mail.imap.protocol.IMAPProtocol;
import com.sun.mail.imap.protocol.MessageSet;
import com.sun.mail.util.ASCIIUtility;
import com.sun.mail.util.BASE64DecoderStream;
import com.sun.mail.util.DecodingException;
import com.sun.mail.util.FolderClosedIOException;
import com.sun.mail.util.MessageRemovedIOException;
@ -2989,6 +2990,10 @@ public class MessageHelper {
Log.e(content.getClass().getName());
result = content.toString();
}
} catch (DecodingException ex) {
Log.e(ex);
warnings.add(Log.formatThrowable(ex, false));
return null;
} catch (IOException | FolderClosedException | MessageRemovedException ex) {
throw ex;
} catch (Throwable ex) {