mirror of https://github.com/M66B/FairEmail.git
Relaxed can block junk
This commit is contained in:
parent
32d4202f81
commit
bac4f41734
|
@ -4581,7 +4581,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue