Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeSystemStatus = 211 CodeHelpMessage = 214 CodeServiceReady = 220 CodeServiceClosing = 221 CodeOK = 250 CodeUserNotLocal = 251 CodeCannotVRFYUser = 252 CodeStartMailInput = 354 CodeServiceNotAvailable = 421 CodeLocalErrorInProcessing = 451 CodeInsufficientSystemStorage = 452 CodeServerUnableToAccommodateParameters = 455 CodeSyntaxError = 500 CodeSyntaxErrorInParametersOrArguments = 501 CodePermCommandNotImplemented = 502 CodePermBadSequenceOfCommands = 503 CodePermCommandParameterNotImplemented = 504 CodePermUserNotLocal = 551 CodePermExceededStorageAllocation = 552 CodePermMailboxNameNotAllowed = 553 CodePermTransactionFailed = 554 CodePermMailRcptParameterError = 555 )
View Source
const ( NONE = "" HELP = "HELP" VRFY = "VRFY" EXPN = "EXPN" SIZE = "SIZE" STARTTLS = "STARTTLS" EHLO = "EHLO" HELO = "HELO" MAIL = "MAIL" RCPT = "RCPT" DATA = "DATA" AUTH = "AUTH" RSET = "RSET" NOOP = "NOOP" QUIT = "QUIT" EIGHT_BITMIME = "8BITMIME" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
FindMailbox(usernameOrAddress string) (*mail.Address, bool)
SaveEmail(addr *mail.Address, from, tos string, data []byte) error
}
Repository represents email repository
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo Repository) *Server
func NewWithTLS ¶
func NewWithTLS(repo Repository, certFile, keyFile string) *Server
Click to show internal directories.
Click to hide internal directories.