mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
BIMI: check if DMARC record was returned
This commit is contained in:
parent
fa0e488887
commit
5c3d8aa336
1 changed files with 3 additions and 1 deletions
|
@ -332,7 +332,9 @@ public class Bimi {
|
|||
String txt = "_dmarc." + domain;
|
||||
Log.i("BIMI fetch TXT " + txt);
|
||||
DnsHelper.DnsRecord[] records = DnsHelper.lookup(context, txt, "txt");
|
||||
if (records.length == 0) {
|
||||
if (records.length == 0 ||
|
||||
records[0].response == null ||
|
||||
!records[0].response.toLowerCase(Locale.ROOT).contains("dmarc")) {
|
||||
String parent = UriHelper.getParentDomain(context, domain);
|
||||
if (parent != null) {
|
||||
txt = "_dmarc." + parent;
|
||||
|
|
Loading…
Reference in a new issue