Specific auth results

pull/215/head
M66B 8 months ago
parent 0bfd0d2a9b
commit b7362c727c

@ -2203,12 +2203,24 @@ public class MessageHelper {
if (val.length == 0) if (val.length == 0)
continue; continue;
if ("pass".equals(val[0])) String value = val[0].toLowerCase(Locale.ROOT);
switch (value) {
case "none":
return null;
case "pass":
return true; return true;
else if ("none".equals(val[0])) case "fail":
case "policy":
return false;
case "neutral":
return null;
case "temperror":
return null;
case "permerror":
return false;
default: // Yahoo: unknown
return null; return null;
else }
return false; // fail, policy, neutral, temperror, permerror
} }
return null; return null;
@ -2292,11 +2304,17 @@ public class MessageHelper {
switch (value) { switch (value) {
case "pass": case "pass":
return true; return true;
case "fail":
return false;
case "softfail":
case "neutral": case "neutral":
case "none": case "none":
case "temperror":
return null; return null;
default: case "permerror":
return false; return false;
default:
return null;
} }
} }

Loading…
Cancel
Save