mirror of https://github.com/M66B/FairEmail.git
Made parse error a warning
This commit is contained in:
parent
830c05839a
commit
965bb98c44
|
@ -1034,10 +1034,15 @@ 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);
|
||||||
|
|
||||||
|
try {
|
||||||
ContentType ct = new ContentType(cpart.getContentType());
|
ContentType ct = new ContentType(cpart.getContentType());
|
||||||
if ("application/pgp-encrypted".equals(ct.getBaseType().toLowerCase()))
|
if ("application/pgp-encrypted".equals(ct.getBaseType().toLowerCase()))
|
||||||
pgp = true;
|
pgp = true;
|
||||||
else
|
} catch (ParseException ex) {
|
||||||
|
Log.w(ex);
|
||||||
|
}
|
||||||
|
|
||||||
getMessageParts(cpart, parts, pgp);
|
getMessageParts(cpart, parts, pgp);
|
||||||
} catch (ParseException ex) {
|
} catch (ParseException ex) {
|
||||||
// Nested body: try to continue
|
// Nested body: try to continue
|
||||||
|
|
Loading…
Reference in New Issue