C# Class SmtpServer.Protocol.SmtpCommandFactory

Show file Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

Method Description
SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System

Constructor.

TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an AUTH command from the given enumerator.

TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a DATA command from the given enumerator.

TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an DBUG command from the given enumerator.

TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an EHLO command from the given enumerator.

TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a HELO command from the given enumerator.

TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a MAIL command from the given enumerator.

TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an NOOP command from the given enumerator.

TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a QUIT command.

TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a RCTP command from the given enumerator.

TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an RSET command from the given enumerator.

TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an STARTTLS command from the given enumerator.

Method Details

SmtpCommandFactory() public method

Constructor.
public SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System
options ISmtpServerOptions The SMTP server options.
parser SmtpParser The ABNF SMTP argument parser.
return System

TryMakeAuth() public method

Make an AUTH command from the given enumerator.
public TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The AUTH command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeData() public method

Make a DATA command from the given enumerator.
public TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DATA command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeDbug() public method

Make an DBUG command from the given enumerator.
public TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DBUG command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeEhlo() public method

Make an EHLO command from the given enumerator.
public TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The EHLO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeHelo() public method

Make a HELO command from the given enumerator.
public TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The HELO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeMail() public method

Make a MAIL command from the given enumerator.
public TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The MAIL command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeNoop() public method

Make an NOOP command from the given enumerator.
public TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The NOOP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeQuit() public method

Make a QUIT command.
public TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The QUIT command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeRcpt() public method

Make a RCTP command from the given enumerator.
public TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RCTP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeRset() public method

Make an RSET command from the given enumerator.
public TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RSET command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

TryMakeStartTls() public method

Make an STARTTLS command from the given enumerator.
public TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The STARTTLS command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool