in resolver/src/main/java/org/apache/james/jspf/terms/IncludeMechanism.java [83:103]
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException,
TempErrorException, NeutralException, NoneException {
String currentResult = spfData.getCurrentResult();
restoreSession(spfData);
if (currentResult == null) {
throw new TempErrorException("included checkSPF returned null");
} else if (currentResult.equals(SPF1Constants.PASS)) {
// TODO this won't work asynchronously
spfData.setAttribute(Directive.ATTRIBUTE_MECHANISM_RESULT, Boolean.TRUE);
} else if (currentResult.equals(SPF1Constants.FAIL) || currentResult.equals(SPF1Constants.SOFTFAIL) || currentResult.equals(SPF1Constants.NEUTRAL)) {
// TODO this won't work asynchronously
spfData.setAttribute(Directive.ATTRIBUTE_MECHANISM_RESULT, Boolean.FALSE);
} else {
throw new TempErrorException("included checkSPF returned an Illegal result");
}
return null;
}