From bac4f41734c3db8741c15bc79f2965f32596df02 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Sep 2021 07:47:16 +0200 Subject: [PATCH] Relaxed can block junk --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 2 +- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 3bf635d5f8..22a988d66b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -4581,7 +4581,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0) { String email = ((InternetAddress) message.from[0]).getAddress(); - canBlock = !TextUtils.isEmpty(email) && Helper.EMAIL_ADDRESS.matcher(email).matches(); + canBlock = !TextUtils.isEmpty(email); } Bundle aargs = new Bundle(); diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 1692071563..81c058cd42 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2482,7 +2482,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. boolean canBlock = false; if (message.from != null && message.from.length > 0) { String email = ((InternetAddress) message.from[0]).getAddress(); - canBlock = !TextUtils.isEmpty(email) && Helper.EMAIL_ADDRESS.matcher(email).matches(); + canBlock = !TextUtils.isEmpty(email); } Bundle aargs = new Bundle();