mailengine

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultQueueJobs = 4
View Source
const FILECHUNK = 32 * 1024
View Source
const ImapDefaultQuotaroot = "User quota"
View Source
const ImapVer = "IMAP4rev1"

Variables

This section is empty.

Functions

func AddGlobalRule

func AddGlobalRule(ctx context.Context, mailDomain string, rule *tt.RuleStruct) error

func AddRule

func AddRule(ctx context.Context, mb *mBox, rule *tt.RuleStruct) error

func GetGlobalRule

func GetGlobalRule(ctx context.Context, mailDomain string, idx int) ([]*tt.RuleStruct, error)

func GetRule

func GetRule(ctx context.Context, mb *mBox, idx int) ([]*tt.RuleStruct, error)

func GlobalRulesNames

func GlobalRulesNames(ctx context.Context, mailDomain string) ([]string, error)

func GlobalRulesProcess

func GlobalRulesProcess(ctx context.Context, mailDomain string, info *tt.DeliveryItem) (*tt.DeliveryState, error)

func ImapEngine

func ImapEngine(ctx context.Context, conn net.Conn, tlsEnabled bool) error

ImapEngine - основной цикл обработчика IMAP

func NewMBox

func NewMBox(ctx context.Context, userEmail string) (*mBox, error)

func ProcessQueue

func ProcessQueue(ctx context.Context) error

func RemoveGlobalRule

func RemoveGlobalRule(ctx context.Context, mailDomain string, idx int) error

func RemoveRule

func RemoveRule(ctx context.Context, mb *mBox, idx int) error

func RulesNames

func RulesNames(ctx context.Context, mb *mBox) ([]string, error)

func RulesProcess

func RulesProcess(ctx context.Context, mb *mBox, info *tt.DeliveryItem, dState *tt.DeliveryState) (*tt.DeliveryState, error)

func SmtpEngine

func SmtpEngine(ctx context.Context, conn net.Conn, tlsEnabled bool) error

SmtpEngine - основной цикл обработчика SMTP

func UpdateGlobalRule

func UpdateGlobalRule(ctx context.Context, mailDomain string, rule *tt.RuleStruct, idx int) error

func UpdateRule

func UpdateRule(ctx context.Context, mb *mBox, rule *tt.RuleStruct, idx int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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