example

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaltPassword

func SaltPassword(plainPassword string) string

func ZohaLmtp

func ZohaLmtp(sessionFactoryHandler SessionFactoryHandler)

ZohaLmtp Example of ZohaLmtp

Types

type SessionFactoryHandler

type SessionFactoryHandler func(supervisor api.MaildirSupervisor, l *slog.Logger) mtp.Session

type SupervisorExample

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

func New

func New(ctx context.Context, sessionFactoryHandler SessionFactoryHandler, mailboxes []api.Mailbox,
	mailerDaemon string, hostname string, defaultMailStorePath, spoolPath string) *SupervisorExample

func NewDummyMaildirSupervisor

func NewDummyMaildirSupervisor(ctx context.Context, sessionFactoryHandler SessionFactoryHandler,
	defaultMailStorePath, spoolPath string) *SupervisorExample

func NewDummySupervisor

func NewDummySupervisor(ctx context.Context, sessionFactoryHandler SessionFactoryHandler) *SupervisorExample

func NewSupervisor

func NewSupervisor(ctx context.Context, sessionFactoryHandler SessionFactoryHandler, mailboxes []api.Mailbox,
	mailerDaemon string, hostname string) *SupervisorExample

func (*SupervisorExample) AbsoluteSpoolPath added in v0.0.4

func (self *SupervisorExample) AbsoluteSpoolPath() string

func (*SupervisorExample) Authorization

func (self *SupervisorExample) Authorization(username string, password string,
	service api.Service, useSsl api.Maybe) *api.Mailbox

func (*SupervisorExample) CloseSession

func (self *SupervisorExample) CloseSession(session mtp.Session)

func (*SupervisorExample) FindMailbox

func (self *SupervisorExample) FindMailbox(name string) *api.Mailbox

func (*SupervisorExample) GenerateNextSpooledMessageName

func (self *SupervisorExample) GenerateNextSpooledMessageName() string

func (*SupervisorExample) GetAbsoluteMaildirPath

func (self *SupervisorExample) GetAbsoluteMaildirPath(mb *api.Mailbox) string

func (*SupervisorExample) Hostname

func (self *SupervisorExample) Hostname() string

func (*SupervisorExample) IsLocalDomain

func (self *SupervisorExample) IsLocalDomain(asciiDomainNameLowerCase string) api.Maybe

func (*SupervisorExample) IsLocalEmail

func (self *SupervisorExample) IsLocalEmail(emailAsciiLowerCase string) api.Maybe

func (*SupervisorExample) MailerDaemonEmailAddress

func (self *SupervisorExample) MailerDaemonEmailAddress() string

func (*SupervisorExample) MainSenderNode added in v0.0.4

func (self *SupervisorExample) MainSenderNode() string

func (*SupervisorExample) OpenSession

func (self *SupervisorExample) OpenSession(ci mtp.ConnectionInfo, l *slog.Logger) (session mtp.Session, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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