class AutomaticallySentMailDetectorImpl implements AutomaticallySentMailDetector {

    @Override
    public boolean isMailingList(Mail mail) throws MessagingException {
        return senderIsMailingList(mail)
            || headerIsMailingList(mail);
    }

}