pop3

package
v0.0.0-...-c275005 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 11 Imported by: 0

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

func Start

func Start(port int)

func StartSSL

func StartSSL(port int)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL