Revert "Catch parse exception of disposition and filename only"

This reverts commit f7e5de7fe3.
pull/156/head
M66B 6 years ago
parent 829d6f38ce
commit 1f989b2499

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

Loading…
Cancel
Save