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

ARC: allow whitelisting all domains

This commit is contained in:
M66B 2023-03-17 10:46:51 +01:00
parent 567cc07ecc
commit 864a090d82

View file

@ -2104,7 +2104,8 @@ public class MessageHelper {
String arc = ams.get(ams.size()); String arc = ams.get(ams.size());
String signer = verifySignatureHeader(context, arc, ARC_MESSAGE_SIGNATURE, amessage); String signer = verifySignatureHeader(context, arc, ARC_MESSAGE_SIGNATURE, amessage);
if (signer != null && !signers.contains(signer)) { if (signer != null && !signers.contains(signer)) {
boolean whitelisted = whitelist.contains(signer); boolean whitelisted = (whitelist.contains(signer) ||
"*".equals(native_arc_whitelist));
Log.i("ARC signer=" + signer + " whitelisted=" + whitelisted); Log.i("ARC signer=" + signer + " whitelisted=" + whitelisted);
if (whitelisted) if (whitelisted)
signers.add(signer); signers.add(signer);