mirror of https://github.com/M66B/FairEmail.git
Check DMARC sub/domain policy only
This commit is contained in:
parent
0197d736ff
commit
d81a61a3f6
|
@ -2176,7 +2176,10 @@ public class MessageHelper {
|
||||||
Boolean none = null;
|
Boolean none = null;
|
||||||
for (String p : v.substring(s + 1, e).split("\\s+")) {
|
for (String p : v.substring(s + 1, e).split("\\s+")) {
|
||||||
String[] kv = p.split("=");
|
String[] kv = p.split("=");
|
||||||
if (kv.length == 2 && "none".equalsIgnoreCase(kv[1]))
|
// Without getting the DMARC DNS record, it isn't possible to check the sub/domain
|
||||||
|
if (kv.length == 2 &&
|
||||||
|
("p".equalsIgnoreCase(kv[0]) || "sp".equalsIgnoreCase(kv[0])) &&
|
||||||
|
"none".equalsIgnoreCase(kv[1]))
|
||||||
none = (none == null || none) && "none".equalsIgnoreCase(kv[1]);
|
none = (none == null || none) && "none".equalsIgnoreCase(kv[1]);
|
||||||
}
|
}
|
||||||
if (none != null && none)
|
if (none != null && none)
|
||||||
|
|
Loading…
Reference in New Issue