in core/src/main/java/org/apache/jsieve/commands/If.java [51:74]
protected Object executeBasic(MailAdapter mail, Arguments arguments,
Block block, SieveContext context) throws SieveException {
// Check Syntax
if (!context.getConditionManager().isIfAllowed())
throw context.getCoordinate().commandException(
"Unexpected Command: \"if\".");
// Check Runnable
if (!context.getConditionManager().isIfRunnable())
return Boolean.FALSE;
// Run the tests
final boolean isTestPassed = arguments.getTestList().allTestsPass(mail,context);
// If the tests answered TRUE, execute the Block
if (isTestPassed)
execute(mail, block, context);
// Update the ConditionManager
context.getConditionManager().setIfTestResult(isTestPassed);
// Return the result
return isTestPassed;
}