mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
BIMI: check DMARC policy
This commit is contained in:
@@ -3001,4 +3001,20 @@ public class MessageHelper {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static Map<String, String> getKeyValues(String value) {
|
||||
Map<String, String> values = new HashMap<>();
|
||||
if (TextUtils.isEmpty(value))
|
||||
return values;
|
||||
|
||||
String[] params = value.split(";");
|
||||
for (String param : params) {
|
||||
String[] kv = param.split("=");
|
||||
if (kv.length != 2)
|
||||
continue;
|
||||
values.put(kv[0].trim().toLowerCase(), kv[1].trim());
|
||||
}
|
||||
|
||||
return values;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user