Documentation ¶
Index ¶
- Constants
- func AddGlobalRule(ctx context.Context, mailDomain string, rule *tt.RuleStruct) error
- func AddRule(ctx context.Context, mb *mBox, rule *tt.RuleStruct) error
- func GetGlobalRule(ctx context.Context, mailDomain string, idx int) ([]*tt.RuleStruct, error)
- func GetRule(ctx context.Context, mb *mBox, idx int) ([]*tt.RuleStruct, error)
- func GlobalRulesNames(ctx context.Context, mailDomain string) ([]string, error)
- func GlobalRulesProcess(ctx context.Context, mailDomain string, info *tt.DeliveryItem) (*tt.DeliveryState, error)
- func ImapEngine(ctx context.Context, conn net.Conn, tlsEnabled bool) error
- func NewMBox(ctx context.Context, userEmail string) (*mBox, error)
- func ProcessQueue(ctx context.Context) error
- func RemoveGlobalRule(ctx context.Context, mailDomain string, idx int) error
- func RemoveRule(ctx context.Context, mb *mBox, idx int) error
- func RulesNames(ctx context.Context, mb *mBox) ([]string, error)
- func RulesProcess(ctx context.Context, mb *mBox, info *tt.DeliveryItem, dState *tt.DeliveryState) (*tt.DeliveryState, error)
- func SmtpEngine(ctx context.Context, conn net.Conn, tlsEnabled bool) error
- func UpdateGlobalRule(ctx context.Context, mailDomain string, rule *tt.RuleStruct, idx int) error
- func UpdateRule(ctx context.Context, mb *mBox, rule *tt.RuleStruct, idx int) error
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 GetGlobalRule ¶
func GlobalRulesNames ¶
func GlobalRulesProcess ¶
func GlobalRulesProcess(ctx context.Context, mailDomain string, info *tt.DeliveryItem) (*tt.DeliveryState, error)
func ImapEngine ¶
ImapEngine - основной цикл обработчика IMAP
func ProcessQueue ¶
func RemoveGlobalRule ¶
func RulesProcess ¶
func RulesProcess(ctx context.Context, mb *mBox, info *tt.DeliveryItem, dState *tt.DeliveryState) (*tt.DeliveryState, error)
func SmtpEngine ¶
SmtpEngine - основной цикл обработчика SMTP
func UpdateGlobalRule ¶
func UpdateRule ¶
Types ¶
This section is empty.
Source Files ¶
- delivery.go
- imapAuth.go
- imapHandler.go
- imapMailboxEngine.go
- queue.go
- rules.go
- rulesActions.go
- rulesActionsCopyTo.go
- rulesActionsCopyToFolder.go
- rulesActionsMarkAsFlagged.go
- rulesActionsMarkAsSeen.go
- rulesActionsRedirectTo.go
- rulesActionsReject.go
- rulesActionsReplyMsg.go
- rulesActionsStop.go
- rulesActionsToFolder.go
- rulesConditions.go
- rulesConditionsBody.go
- rulesConditionsDate.go
- rulesConditionsHeader.go
- rulesConditionsSize.go
- rulesConditionsSpamScore.go
- smtpAuth.go
- smtpChecker.go
- smtpHandler.go
- smtpValidator.go
Click to show internal directories.
Click to hide internal directories.