1 17 18 package org.apache.james.transport.matchers; 19 20 import org.apache.mailet.Mail; 21 22 import javax.mail.MessagingException ; 23 import java.util.Collection ; 24 25 33 public class RemoteAddrNotInNetwork extends AbstractNetworkMatcher { 34 public Collection match(Mail mail) { 35 return matchNetwork(mail.getRemoteAddr()) ? null : mail.getRecipients(); 36 } 37 } 38 | Popular Tags |