1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Debug: DKIM verify doesn't work with folded header

This commit is contained in:
M66B 2022-04-06 11:03:11 +02:00
parent da4a5fd93f
commit 0297e9d22e
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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) {