mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Handle removed exception when getting message body
This commit is contained in:
parent
bffbc59b70
commit
e27c7b0c2b
1 changed files with 2 additions and 1 deletions
|
@ -58,6 +58,7 @@ import javax.mail.Flags;
|
||||||
import javax.mail.FolderClosedException;
|
import javax.mail.FolderClosedException;
|
||||||
import javax.mail.Header;
|
import javax.mail.Header;
|
||||||
import javax.mail.Message;
|
import javax.mail.Message;
|
||||||
|
import javax.mail.MessageRemovedException;
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
import javax.mail.Multipart;
|
import javax.mail.Multipart;
|
||||||
import javax.mail.Part;
|
import javax.mail.Part;
|
||||||
|
@ -847,7 +848,7 @@ public class MessageHelper {
|
||||||
result = readStream((InputStream) content, "UTF-8");
|
result = readStream((InputStream) content, "UTF-8");
|
||||||
else
|
else
|
||||||
result = content.toString();
|
result = content.toString();
|
||||||
} catch (IOException | FolderClosedException ex) {
|
} catch (IOException | FolderClosedException | MessageRemovedException ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
|
|
Loading…
Reference in a new issue