This Matcher determines if the mail contains the attribute specified in the condition, and returns all recipients if it is the case.
Sample configuration:
<mailet match="HasMailAttribute=whatever" class="<any-class>">
Return a string describing this matcher.returna string describing this matcher return "Has Mail Attribute Matcher";
return "Has Mail Attribute Matcher";
attributeName = conf.getCondition();
parammail the mail to check.returnall recipients if the condition is the name of an attribute set on the mail if (mail.getAttribute (attributeName) != null) { return mail.getRecipients(); } return null;
if (mail.getAttribute (attributeName) != null) { return mail.getRecipients(); } return null;