FileDocCategorySizeDatePackage
RecipientIsLocal.javaAPI DocApache James 2.3.11787Fri Jan 12 12:56:32 GMT 2007org.apache.james.transport.matchers

RecipientIsLocal

public class RecipientIsLocal extends org.apache.mailet.GenericRecipientMatcher
version
1.0.0, 24/04/1999

Fields Summary
Constructors Summary
Methods Summary
public booleanmatchRecipient(org.apache.mailet.MailAddress recipient)

        MailetContext mailetContext = getMailetContext();
        //This might change after startup
        return mailetContext.isLocalServer(recipient.getHost())
            && mailetContext.isLocalUser(recipient.getUser());