mailstorage

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStorage

func CreateStorage(ctx context.Context, mailDomain, pluginName string, options map[string]string) error

func GetDefaultQuota

func GetDefaultQuota(ctx context.Context, email string) (int, error)

func GetEmptyStorageSettings

func GetEmptyStorageSettings(ctx context.Context, pluginName string) ([]interface{}, error)

func GetInbox

func GetInbox(ctx context.Context, lp, dom string) (tt.ImapFolder, error)

func GetLocalDomains

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

func GetParsedGlobalRules

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

func GetProviderPluginNamesDesc

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

func GetSmartHost

func GetSmartHost(ctx context.Context, domain string) (*tt.SmartHost, error)

func GetStorageByDomain

func GetStorageByDomain(ctx context.Context, domain string) (*tt.MailStorage, error)

func GetStorageByEmail

func GetStorageByEmail(ctx context.Context, email string) (*tt.MailStorage, error)

func GetStorageByIdx

func GetStorageByIdx(ctx context.Context, idx int) (*tt.MailStorage, error)

func GetStorageDesc

func GetStorageDesc(ctx context.Context, pluginName string) (string, error)

func GetStorageList

func GetStorageList(ctx context.Context) ([]*tt.MailStorage, error)

func GetSystemFolders

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

func GetTrashAdditionalQuota

func GetTrashAdditionalQuota(ctx context.Context, email string) (int, error)

func LoadStorageSettings

func LoadStorageSettings(ctx context.Context, pluginName, mailDomain string) ([]interface{}, error)

func MailStorageDomainExists

func MailStorageDomainExists(ctx context.Context, mailDomain string) (bool, error)

func MboxIsLocal

func MboxIsLocal(ctx context.Context, email string) (bool, error)

func NormalizeSystemFolderName

func NormalizeSystemFolderName(ctx context.Context, name string) string

func RemoveStorage

func RemoveStorage(ctx context.Context, pluginName, mailDomain string) error

func SaveGlobalRules

func SaveGlobalRules(ctx context.Context, mailDomain string, rules []*tt.RuleStruct) error

func SaveStorageSettings

func SaveStorageSettings(ctx context.Context, mailDomain, pluginName string, options map[string]string) error

func StorageWebExists

func StorageWebExists(ctx context.Context, pluginName string) (bool, error)

func Web

func Web(ctx context.Context, pluginName, mailDomain, action string, params map[string]string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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