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

SMTPAuthSuccessful

public class SMTPAuthSuccessful extends org.apache.mailet.GenericMatcher

Matches mails that are sent by an SMTP authenticated user.

If the sender was not authenticated it will not match.


<mailet match="SMTPAuthSuccessful" class="<any-class>">
version
CVS $Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $
since
2.2.0

Fields Summary
private static final String
SMTP_AUTH_USER_ATTRIBUTE_NAME
The mail attribute holding the SMTP AUTH user name, if any.
Constructors Summary
Methods Summary
public java.util.Collectionmatch(org.apache.mailet.Mail mail)

    
        
        String authUser = (String) mail.getAttribute(SMTP_AUTH_USER_ATTRIBUTE_NAME);
        if (authUser != null) {
            return mail.getRecipients();
        } else {
            return null;
        }