From 0297e9d22ed181a23fb03bc8b31ca5c21c68de22 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 6 Apr 2022 11:03:11 +0200 Subject: [PATCH] Debug: DKIM verify doesn't work with folded header --- app/src/main/java/eu/faircode/email/Core.java | 2 +- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 90eba2e6fa..a5be1adb11 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -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(); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index 61e70a344e..6457bf4b33 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -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) {