Package mireka.submission

Source Code of mireka.submission.SmtpAuthenticated

package mireka.submission;

import org.subethamail.smtp.AuthenticationHandler;

import mireka.filter.MailTransaction;

public class SmtpAuthenticated implements MailTransactionSpecification {

    @Override
    public boolean isSatisfiedBy(MailTransaction mailTransaction) {
        AuthenticationHandler authenticationHandler =
                mailTransaction.getMessageContext().getAuthenticationHandler();
        return authenticationHandler != null;
    }
}
TOP

Related Classes of mireka.submission.SmtpAuthenticated

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.