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:
parent
316a4bcae8
commit
fc6ba484bc
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue