class SentByJmap extends GenericMatcher {

    @Override
    public Collection<MailAddress> match(Mail mail) {
        return AttributeUtils.getAttributeValueFromMail(mail, MailMetadata.MAIL_METADATA_USERNAME_ATTRIBUTE)
            .map(ignored -> mail.getRecipients())
            .orElse(ImmutableList.of());
    }

}