Documentation ¶
Index ¶
Constants ¶
View Source
const ( CMD_READY = iota CMD_AUTH_PLAIN CMD_USER CMD_PASS CMD_STAT CMD_LIST CMD_RETR CMD_DELE CMD_NOOP CMD_RSET CMD_TOP CMD_UIDL CMD_APOP CMD_QUIT CMD_CAPA )
View Source
const ( MSG_INIT = "Welcome to coremail Mail Pop3 Server (imail)" MSG_OK = "core mail" MSG_BAD_SYNTAX = "500" MSG_LOGIN_OK = "%d message(s) [%d byte(s)]" MSG_STAT_OK = "%d %d" MSG_LOGIN_DISABLE = "Unable to log on" MSG_CMD_NOT_VALID = "Command not valid in this state" MSG_RETR_DATA = "%s octets\r\n%s\r\n." MSG_CAPA = "Capability list follows" MSG_POS_DATA = "%d %s" MSG_TOP_DATA = "%s octets\r\n%s" MSG_AUTH_PLAIN = "+\r\n" )
Variables ¶
View Source
var GO_EOL = tools.GetGoEol()
Functions ¶
Types ¶
type Pop3Server ¶
type Pop3Server struct { LinkSSL bool TLSConfig *tls.Config // Enable STARTTLS support. // contains filtered or unexported fields }
func (*Pop3Server) D ¶
func (this *Pop3Server) D(format string, args ...interface{})
func (*Pop3Server) Debug ¶
func (this *Pop3Server) Debug(d bool)
func (*Pop3Server) StartPort ¶
func (this *Pop3Server) StartPort(port int)
func (*Pop3Server) StartSSLPort ¶
func (this *Pop3Server) StartSSLPort(port int)
Click to show internal directories.
Click to hide internal directories.