Made parse error a warning

This commit is contained in:
M66B 2019-09-06 11:21:12 +02:00
parent 830c05839a
commit 965bb98c44
1 changed files with 10 additions and 5 deletions

View File

@ -1034,11 +1034,16 @@ public class MessageHelper {
for (int i = 0; i < multipart.getCount(); i++) for (int i = 0; i < multipart.getCount(); i++)
try { try {
Part cpart = multipart.getBodyPart(i); Part cpart = multipart.getBodyPart(i);
ContentType ct = new ContentType(cpart.getContentType());
if ("application/pgp-encrypted".equals(ct.getBaseType().toLowerCase())) try {
pgp = true; ContentType ct = new ContentType(cpart.getContentType());
else if ("application/pgp-encrypted".equals(ct.getBaseType().toLowerCase()))
getMessageParts(cpart, parts, pgp); pgp = true;
} catch (ParseException ex) {
Log.w(ex);
}
getMessageParts(cpart, parts, pgp);
} catch (ParseException ex) { } catch (ParseException ex) {
// Nested body: try to continue // Nested body: try to continue
// ParseException: In parameter list boundary="...">, expected parameter name, got ";" // ParseException: In parameter list boundary="...">, expected parameter name, got ";"