Debug: DKIM verify doesn't work with folded header

pull/207/head
M66B 3 years ago
parent da4a5fd93f
commit 0297e9d22e

@ -3972,7 +3972,7 @@ class Core {
message.tls = helper.getTLS();
message.dkim = MessageHelper.getAuthentication("dkim", authentication);
if (Boolean.TRUE.equals(message.dkim))
if (!BuildConfig.PLAY_STORE_RELEASE && dkim_verify)
if (BuildConfig.DEBUG && dkim_verify)
message.dkim = helper.verifyDKIM(context);
else
message.dkim = helper.checkDKIMRequirements();

@ -1138,7 +1138,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
swDkimVerify.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.GONE : View.VISIBLE);
swDkimVerify.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
swDkimVerify.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

Loading…
Cancel
Save