if (value!= null && value.matches(regex))
return action;
}
return Action.SKIP;
} else {
EmailFieldValue efv = (EmailFieldValue)email.getFields().get(field);
if (!regex.startsWith(".*"))
regex = ".*" + regex;
if (!regex.endsWith(".*"))
regex = regex + ".*";
if (efv!=null && efv.getField().getArchiveRule().equals(EmailField.AllowArchiveRule.ARCHIVERULE) &&
efv.getValue()!=null && efv.getValue().matches(regex))
return action;
else
return Action.SKIP;
}
}