Reduced logging

pull/184/head
M66B 5 years ago
parent e6cb5bdb95
commit 1736796e3d

@ -303,8 +303,11 @@ public class MessageHelper {
final ContentType cts = new ContentType(attachment.type); final ContentType cts = new ContentType(attachment.type);
String micalg = cts.getParameter("micalg"); String micalg = cts.getParameter("micalg");
if (TextUtils.isEmpty(micalg)) if (TextUtils.isEmpty(micalg)) {
Log.e("PGP micalg missing"); // Some providers strip parameters
// https://tools.ietf.org/html/rfc3156#section-5
Log.w("PGP micalg missing type=" + attachment.type);
}
ParameterList params = cts.getParameterList(); ParameterList params = cts.getParameterList();
if (params != null) if (params != null)
params.remove("micalg"); params.remove("micalg");
@ -389,7 +392,8 @@ public class MessageHelper {
final ContentType cts = new ContentType(attachment.type); final ContentType cts = new ContentType(attachment.type);
String micalg = cts.getParameter("micalg"); String micalg = cts.getParameter("micalg");
if (TextUtils.isEmpty(micalg)) { if (TextUtils.isEmpty(micalg)) {
Log.e("S/MIME micalg missing type=" + attachment.type); // Some providers strip parameters
Log.w("S/MIME micalg missing type=" + attachment.type);
micalg = "sha-256"; micalg = "sha-256";
} }
ParameterList params = cts.getParameterList(); ParameterList params = cts.getParameterList();

Loading…
Cancel
Save