smtp

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT-0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_MECHANISM_PLAIN = "PLAIN"
)

Variables

This section is empty.

Functions

func Listen

func Listen(context *serverContext.Context, exitCh chan int)

Types

type AuthPlainScene

type AuthPlainScene struct {
	// contains filtered or unexported fields
}

func (*AuthPlainScene) HandleLine

func (scene *AuthPlainScene) HandleLine(receivedLine string) *smtpServer.Reply

func (*AuthPlainScene) Init

func (scene *AuthPlainScene) Init(receivedLine string, protocol *smtpServer.Protocol) *smtpServer.Reply

type Session

type Session struct {
	LoggedUsername string
	// contains filtered or unexported fields
}

func (*Session) IsConversation

func (session *Session) IsConversation() bool

func (*Session) Start

func (session *Session) Start(identification string)

func (*Session) Write

func (session *Session) Write(reply *smtpServer.Reply)

Write writes a reply to the specific connection

Jump to

Keyboard shortcuts

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