1 17 18 package org.apache.james.transport.matchers; 19 20 import org.apache.mailet.GenericMatcher; 21 import org.apache.mailet.Mail; 22 23 import java.util.Collection ; 24 25 35 public class HasHeader extends GenericMatcher { 36 37 public Collection match(Mail mail) throws javax.mail.MessagingException { 38 return (mail.getMessage().getHeader(getCondition(), null) != null) ? mail.getRecipients() : null; 39 } 40 } 41 42 | Popular Tags |