@Test public void majordomoIsReserved() throws Exception { FakeMail fakeMail = FakeMail.builder() .name("mail") .sender("majordomo@any.com") .build(); assertThat(new AutomaticallySentMailDetectorImpl().isMailingList(fakeMail)).isTrue(); }
@Override public boolean isMailingList(Mail mail) throws MessagingException { return senderIsMailingList(mail) || headerIsMailingList(mail); }
AutomaticallySentMailDetectorImpl implements AutomaticallySentMailDetector { @Override public boolean isMailingList(Mail mail) throws MessagingException { return senderIsMailingList(mail) || headerIsMailingList(mail); } }
AutomaticallySentMailDetectorImpl implements AutomaticallySentMailDetector { @Override public boolean isMailingList(Mail mail) throws MessagingException { return senderIsMailingList(mail) || headerIsMailingList(mail); }  }
AutomaticallySentMailDetectorImpl implements AutomaticallySentMailDetector { @Override public boolean isMailingList(Mail mail) throws MessagingException { return senderIsMailingList(mail) || headerIsMailingList(mail); }  @Override boolean isAutomaticallySent(Mail mail); @Override boolean isMailingList(Mail mail); @Override boolean isAutoSubmitted(Mail mail); @Override boolean isMdnSentAutomatically(Mail mail); }
AutomaticallySentMailDetectorImpl implements AutomaticallySentMailDetector { @Override public boolean isMailingList(Mail mail) throws MessagingException { return senderIsMailingList(mail) || headerIsMailingList(mail); }  @Override boolean isAutomaticallySent(Mail mail); @Override boolean isMailingList(Mail mail); @Override boolean isAutoSubmitted(Mail mail); @Override boolean isMdnSentAutomatically(Mail mail);  }