Revert "Catch parse exception of disposition and filename only"

This reverts commit f7e5de7fe3.
This commit is contained in:
M66B 2019-06-18 20:14:42 +02:00
parent 829d6f38ce
commit 1f989b2499
1 changed files with 4 additions and 8 deletions

View File

@ -1035,7 +1035,7 @@ public class MessageHelper {
disposition = part.getDisposition();
if (disposition != null)
disposition = disposition.toLowerCase();
} catch (ParseException ex) {
} catch (MessagingException ex) {
Log.w(ex);
parts.warnings.add(Helper.formatThrowable(ex));
disposition = null;
@ -1045,13 +1045,9 @@ public class MessageHelper {
try {
filename = part.getFileName();
} catch (MessagingException ex) {
if (ex instanceof ParseException ||
ex.getCause() instanceof UnsupportedEncodingException) {
Log.w(ex);
parts.warnings.add(Helper.formatThrowable(ex));
filename = null;
} else
throw ex;
Log.w(ex);
parts.warnings.add(Helper.formatThrowable(ex));
filename = null;
}
//Log.i("Part" +