Package com.ericdaugherty.mail.server.errors

Examples of com.ericdaugherty.mail.server.errors.InvalidAddressException


                write( MESSAGE_OK );
                if( log.isDebugEnabled() ) { log.debug( "RCTP TO: " + address.getAddress() + " accepted." ); }
            }
            else {
                if( log.isInfoEnabled() ) log.info( "Invalid delivery address for incoming mail: " + toAddress + " from client: " + clientIp + " / " + message.getFromAddress() );
                throw new InvalidAddressException();
            }
        }
        catch( InvalidAddressException iae ) {
            write( MESSAGE_USER_NOT_LOCAL );
            log.debug( "RCTP TO: " + toAddress + " rejected." );
View Full Code Here


    private void setFullAddress( String fullAddress ) throws InvalidAddressException {

        //Parse toAddress into username and domain.
        int index = fullAddress.indexOf( "@" );
        if( index == -1 ) {
            throw new InvalidAddressException();
        }

        setUsername( fullAddress.substring( 0, index ) );
        setDomain( fullAddress.substring( index + 1 ) );
View Full Code Here

TOP

Related Classes of com.ericdaugherty.mail.server.errors.InvalidAddressException

Copyright © 2018 www.massapicom. 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.