C# Class SmtpServer.Storage.MailboxFilter

Inheritance: IMailboxFilter, IMailboxFilterFactory
Datei anzeigen Open project: cosullivan/SmtpServer

Public Methods

Method Description
CanAcceptFromAsync ( ISessionContext context, IMailbox @from, int size ) : Task

Returns a value indicating whether the given mailbox can be accepted as a sender.

CanDeliverToAsync ( ISessionContext context, IMailbox to, IMailbox @from ) : Task

Returns a value indicating whether the given mailbox can be accepted as a recipient to the given sender.

CreateInstance ( ISessionContext context ) : IMailboxFilter

Creates an instance of the message box filter.

Method Details

CanAcceptFromAsync() public method

Returns a value indicating whether the given mailbox can be accepted as a sender.
public CanAcceptFromAsync ( ISessionContext context, IMailbox @from, int size ) : Task
context ISessionContext The session context.
@from IMailbox
size int The estimated message size to accept.
return Task

CanDeliverToAsync() public method

Returns a value indicating whether the given mailbox can be accepted as a recipient to the given sender.
public CanDeliverToAsync ( ISessionContext context, IMailbox to, IMailbox @from ) : Task
context ISessionContext The session context.
to IMailbox The mailbox to test.
@from IMailbox
return Task

CreateInstance() public method

Creates an instance of the message box filter.
public CreateInstance ( ISessionContext context ) : IMailboxFilter
context ISessionContext The session context.
return IMailboxFilter